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()).

Any hints/help highly appreciated!

Regards,

---rony




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

Reply via email to