Am 25.01.2010 um 17:55 schrieb Yoko H.:
Embedding API of JRuby 1.5.0 will have setLoader method, but JSR 223
won’t since JSR 223 doesn’t have a method to set classloader. Only one
possible change is to make it to use the classloader that is used to
load ScriptEngineFactory always. Currently,
Thread.currentThread().getContextClassLoader() is always used to get
the classloader for JSR223. Do you think the loader of
ScriptEngineFactory is better to choose? If so, I’ll make the change.
I don’t really have the knowledge to make a good quess here…
Would it be possible to set the classloader via some property?
But I think using the ScriptEngingFactory loader could solve
I understand that your other APIs have some advantages over the
JSR 223 one, but I am seeing using JSR 223 as a very practical thing,
as it allows to add new script languages to a program with only little
additional coding overhead. Especially in the case of systemmanagement
tools in java (like http://rhq-project.org/) end users know many of the
we Java-peeps can’t even think of (perl, python, zsh).
Reg. Adresse: Red Hat GmbH, Otto-Hahn-Strasse 20, 85609 Dornach bei München
Handelsregister: Amtsgericht München HRB 153243
Geschaeftsführer: Brendan Lane, Charlie Peters, Michael Cunningham, Charles
To unsubscribe from this list, please visit: