org.ofbiz.base.util.string
Class JuelConnector

java.lang.Object
  extended by org.ofbiz.base.util.string.JuelConnector

public class JuelConnector
extends java.lang.Object

A facade class used to connect the OFBiz framework to the JUEL library.

The Unified Expression Language specification doesn't allow assignment of values to non-existent variables (auto-vivify) - but the OFBiz scripting languages do. This class modifies the JUEL library behavior to enable auto-vivify.


Nested Class Summary
static class JuelConnector.ExtendedAstBracket
          Custom AstBracket class that implements List or Map auto-vivify.
static class JuelConnector.ExtendedAstDot
          Custom AstDot class that implements List or Map auto-vivify.
protected static class JuelConnector.ExtendedBuilder
          Custom Builder class needed to implement a custom parser.
protected static class JuelConnector.ExtendedParser
          Custom Parser class needed to implement auto-vivify.
 
Field Summary
protected static java.lang.String module
           
 
Constructor Summary
JuelConnector()
           
 
Method Summary
static ExpressionFactory newExpressionFactory()
          Returns an ExpressionFactory instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

module

protected static final java.lang.String module
Constructor Detail

JuelConnector

public JuelConnector()
Method Detail

newExpressionFactory

public static ExpressionFactory newExpressionFactory()
Returns an ExpressionFactory instance.

Returns:
A customized ExpressionFactory instance