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

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

Attachment: smime.p7s
Description: S/MIME cryptographic signature


Back to the top