Package org.apache.commons.jexl
Class JexlHelper
- java.lang.Object
-
- org.apache.commons.jexl.JexlHelper
-
public class JexlHelper extends java.lang.Object
Helper to create a context. In the current implementation of JEXL, there is one implementation of JexlContext -HashMapContext
, and there is no reason not to directly instantiateHashMapContext
in your own application.- Since:
- 1.0
- Version:
- $Id$
-
-
Field Summary
Fields Modifier and Type Field Description protected static JexlHelper
helper
singleton instance.
-
Constructor Summary
Constructors Constructor Description JexlHelper()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static JexlContext
createContext()
Returns a newJexlContext
.protected static JexlHelper
getInstance()
protected JexlContext
newContext()
Creates and returns a newJexlContext
.
-
-
-
Field Detail
-
helper
protected static JexlHelper helper
singleton instance.
-
-
Constructor Detail
-
JexlHelper
public JexlHelper()
-
-
Method Detail
-
getInstance
protected static JexlHelper getInstance()
- Returns:
- the single instance.
-
createContext
public static JexlContext createContext()
Returns a newJexlContext
.- Returns:
- a new JexlContext
-
newContext
protected JexlContext newContext()
Creates and returns a newJexlContext
. The current implementation creates a new instance ofHashMapContext
.- Returns:
- a new JexlContext
-
-