<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.18939">
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial>Hi,</FONT></DIV>
<DIV><FONT face=Arial></FONT> </DIV>
<DIV><FONT face=Arial>embedding ABCL using JSR 223 scripting interface I see an
nnoyingly long startup time for instances of the ScriptEngineFactory. This is
annoying, as e.g. just enumerating all available scrip engines takes rather long
because ABCL peforms its complete initailization when I only want to see what
its name and script file extensions are.</FONT></DIV>
<DIV><FONT face=Arial></FONT> </DIV>
<DIV><FONT face=Arial>In the class AbclScriptEngineFactory there is a
static field which holds a singleeton instance of the script
engine:</FONT></DIV>
<DIV><FONT face=Arial>private static final AbclScriptEngine THE_ONLY_ONE_ENGINE
= new AbclScriptEngine();</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT face=Arial>This field is unneccesarily instantiated as soon as the
class AbclScriptEngineFactory is instantiated.</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2><FONT face=Arial>It would be preferred to intantiate the cript
engine only when actually needed, i.e. in <FONT size=3>getScriptEngine() and
instead set it to null so that THE_ONLY_ONE_ENGINE can be tested agianst null
inside getScriptEngine().</FONT></FONT></FONT></DIV>
<DIV><FONT face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>Thank You,</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>Martin</FONT></DIV></BODY></HTML>