@@ -30,8 +30,6 @@ public abstract class ExpressionEvaluator {
3030
3131 /** logger */
3232 private final static Logger _logger = Logger .getLogger (ExpressionEvaluator .class .getName ());
33- /** flag enabling Jython 2.7 support (false by default as this library is too heavy) */
34- private final static boolean ENABLE_JYTHON_SUPPORT = false ;
3533
3634 /** Factory instance */
3735 private static ExpressionEvaluator instance = null ;
@@ -46,29 +44,15 @@ public final static ExpressionEvaluator getInstance() {
4644 if (instance == null ) {
4745 // create an ExpressionEvaluator instance:
4846 ExpressionEvaluator eval = null ;
49- if (ENABLE_JYTHON_SUPPORT ) {
50- try {
51- _logger .fine ("new JythonEval" );
52- eval = new JythonEval ();
53- } catch (NoClassDefFoundError cnfe ) {
54- _logger .info ("JythonEval can not load Jython library." );
55- } catch (Throwable th ) {
56- _logger .log (Level .SEVERE , "JythonEval creation failure:" , th );
57- }
47+ try {
48+ _logger .fine ("new JELEval" );
49+ eval = new JELEval ();
50+ } catch (Throwable th ) {
51+ _logger .log (Level .SEVERE , "JELEval creation failure:" , th );
5852 }
59- if (eval == null ) {
60- try {
61- _logger .fine ("new JELEval" );
62- eval = new JELEval ();
63- } catch (Throwable th ) {
64- _logger .log (Level .SEVERE , "JELEval creation failure:" , th );
65- }
66- }
67-
6853 if (eval == null ) {
6954 throw new IllegalStateException ("unable to create an ExpressionEvaluator !" );
7055 }
71-
7256 instance = eval ;
7357 }
7458 return instance ;
0 commit comments