Java Mailing List Archive

http://www.gg3721.com/

Home » user.groovy »

[groovy-user] Getting the current binding from a static context

Mark Claassen

2010-03-17

Replies: Find Java Web Hosting

Author LoginPost Reply
I am building some utility methods for a script. Before the script is executed, a few variables are set by:

Binding binding = new Binding();
binding.setVariable("foo", valueOfFoo);
script.setBinding(binding);

Is there anyway I can get this binding from a static utility class so I can access these member variables?
Something like Script.getCurrentScript().getBinding().

Thanks,
Mark
©2008 gg3721.com - Jax Systems, LLC, U.S.A.