What is the preferred way to trigger at_exit blocks with the new JRuby
Embed API? Previously I was using BSF’s terminate() method. I know
that behavior is not part of JSR223 so maybe it’s still an open
question?
PS - thanks to Yoko (and anyone else?) for updating all the JRuby
embedding info on the wiki for the 1.4 release. It’s been very
helpful, especially the comparison of Core, JSR223, and BSF.
Adam
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email
Hi Adam,
On Wed, Nov 18, 2009 at 9:45 PM, Adam M. [email protected]
wrote:
What is the preferred way to trigger at_exit blocks with the new JRuby
Embed API? Previously I was using BSF’s terminate() method. I know
that behavior is not part of JSR223 so maybe it’s still an open
question?
at_exit blocks are executed at the end of each evaluation. BSF’s
terminate() like post-processing runs always when runScriplet() or
EvalUnit.run() method is invoked. So, you don’t need terminate() just
for at_exit block.
PS - thanks to Yoko (and anyone else?) for updating all the JRuby
embedding info on the wiki for the 1.4 release. It’s been very
helpful, especially the comparison of Core, JSR223, and BSF.
Thanks for looking at it. If you want more information there, feel
free to suggest that.
-Yoko
Adam
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email