org.apache.commons.jexl

Class JexlHelper

public class JexlHelper extends 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 instantiate HashMapContext in your own application.

Since: 1.0

Version: $Id: JexlHelper.java 397092 2006-04-26 05:11:28Z dion $

Field Summary
protected static JexlHelperhelper
singleton instance.
Method Summary
static JexlContextcreateContext()
Returns a new JexlContext.
protected static JexlHelpergetInstance()
protected JexlContextnewContext()
Creates and returns a new JexlContext.

Field Detail

helper

protected static JexlHelper helper
singleton instance.

Method Detail

createContext

public static JexlContext createContext()
Returns a new JexlContext.

Returns: a new JexlContext

getInstance

protected static JexlHelper getInstance()

Returns: the single instance.

newContext

protected JexlContext newContext()
Creates and returns a new JexlContext. The current implementation creates a new instance of HashMapContext.

Returns: a new JexlContext

Copyright © 2003-2011 The Apache Software Foundation. All Rights Reserved.