Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [ease-dev] Script inspection inside function annotated with @WrapToScript

Looks like it worked well. Thank you for your quick response.

On Thu, Jan 30, 2020 at 8:11 AM <Christian.Pontesegger@xxxxxxxxxxxx> wrote:

Hi,

 

let your module inherit from org.eclipse.ease.modules.AbstractScriptModule. The initialize method will automatically by called when the module gets loaded in your engine. Then you have access to the script engine using getScriptEngine(). Add engine listeners to get informed of script executions and terminations.

 

HTH

Christian

 

 

I have a use case where I create Java objects with functions annotated with @WrapToScript. These objects need to be cleaned-up when the script finishes. Is there any way to access the current script environment inside a function annotated with @WrapToScript? Or maybe a way to subscribe to an event that tells me if the script is done?

 

Thank you

_______________________________________________
ease-dev mailing list
ease-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/ease-dev

Back to the top