Package org.apache.jasper.el
Class ELContextWrapper
- java.lang.Object
-
- javax.el.ELContext
-
- org.apache.jasper.el.ELContextWrapper
-
public final class ELContextWrapper extends ELContext
Simple ELContextWrapper for runtime evaluation of EL w/ dynamic FunctionMappers- Author:
- jhook
-
-
Constructor Summary
Constructors Constructor Description ELContextWrapper(ELContext target, FunctionMapper fnMapper)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectgetContext(Class key)Obtain the context object for the given key.ELResolvergetELResolver()FunctionMappergetFunctionMapper()LocalegetLocale()VariableMappergetVariableMapper()booleanisPropertyResolved()voidputContext(Class key, Object contextObject)Add an object to this EL context under the given key.voidsetLocale(Locale locale)voidsetPropertyResolved(boolean resolved)-
Methods inherited from class javax.el.ELContext
addEvaluationListener, convertToType, enterLambdaScope, exitLambdaScope, getEvaluationListeners, getImportHandler, getLambdaArgument, isLambdaArgument, notifyAfterEvaluation, notifyBeforeEvaluation, notifyPropertyResolved, setPropertyResolved
-
-
-
-
Constructor Detail
-
ELContextWrapper
public ELContextWrapper(ELContext target, FunctionMapper fnMapper)
-
-
Method Detail
-
getELResolver
public ELResolver getELResolver()
- Specified by:
getELResolverin classELContext
-
getFunctionMapper
public FunctionMapper getFunctionMapper()
- Specified by:
getFunctionMapperin classELContext
-
getVariableMapper
public VariableMapper getVariableMapper()
- Specified by:
getVariableMapperin classELContext
-
getContext
public Object getContext(Class key)
Description copied from class:javax.el.ELContextObtain the context object for the given key.- Overrides:
getContextin classELContext- Parameters:
key- The key of the required context object- Returns:
- The value of the context object associated with the given key
-
isPropertyResolved
public boolean isPropertyResolved()
- Overrides:
isPropertyResolvedin classELContext
-
putContext
public void putContext(Class key, Object contextObject) throws NullPointerException
Description copied from class:javax.el.ELContextAdd an object to this EL context under the given key.- Overrides:
putContextin classELContext- Parameters:
key- The key under which to store the objectcontextObject- The object to add- Throws:
NullPointerException- If the supplied key or context isnull
-
setPropertyResolved
public void setPropertyResolved(boolean resolved)
- Overrides:
setPropertyResolvedin classELContext
-
-