Re: the ScriptingMojo

From: Kartik Ohri <kartikohri13(at)gmail(dot)com>
To: Chapman Flack <chap(at)anastigmatix(dot)net>
Cc: pljava-dev(at)lists(dot)postgresql(dot)org
Subject: Re: the ScriptingMojo
Date: 2020-08-22 20:33:48
Message-ID: CAASLQ4OKjEtjKq3TmqK9D+QbdZSw08CSp8X5wRUaZfjNUOLEtA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pljava-dev

>
> "Thing" as a class name is just proof-of-concept of course. :) I had
>> been wondering earlier if it might be useful to make PGXSUtils
>> instantiable
>> and bind an instance of it into the script; its constructor could take the
>> MavenProject and Log and those wouldn't have to be passed around as much.
>> It would still be possible to bind selected methods of it directly with
>> names of their own for convenience, but other methods could just be
>> accessible as utils.method() and I think that would solve this casting
>> issue.
>>
>
Regarding this, which methods should be bound by their own names ? Should I
keep the current list of methods and just add an instance of the PGXSUtils
to the script or should I remove the existing bindings ?

In response to

Responses

Browse pljava-dev by date

  From Date Subject
Next Message Chapman Flack 2020-08-22 20:45:13 Re: the ScriptingMojo
Previous Message Kartik Ohri 2020-08-22 20:19:08 Re: the ScriptingMojo