Hi Rony,

Rony G. Flatscher wrote:

Hi there,

just out of curiosity at the moment: how would one proceed to invoke scripts and supply them with the event object as well?

At the moment the default event processor (BSFEventProcessor) dispatches only the script to the engine using "exec", which does not allow for supplying arguments. Peeking around the code I can see that the event adapters themselves are using EventAdapterImpl.setEventProcessor(EventProcessor) to set the default event processor. Maybe I am overseeing the obvious, but I have not found a way to set a different event processor (one that would supply the event object as an argument, dispatching the script in the case an event occurs via apply() - or call() for that matter to allow for call-back semantics supplying the event object - instead of exec()).

yes, you are absolutely correct. At the moment the default event processor dispatches scripts to the engine using exec() in the event of an occurance of an event and there is no way to supply arguments or an event object as for that matter


Any hints/help highly appreciated!

Regards,

---rony




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Sanka

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to