- java.lang.Object
-
- jakarta.el.ELContext
-
- org.omnifaces.el.ELContextWrapper
-
- All Implemented Interfaces:
FacesWrapper<ELContext>
public class ELContextWrapper extends ELContext implements FacesWrapper<ELContext>
Provides a simple implementation of
ELContextthat can be sub-classed by developers wishing to provide specialized behavior to an existingELContextinstance. The default implementation of all methods is to call through to the wrappedELContext.Usage: extend this class and provide the instance we are wrapping to the overloaded constructor.
- Author:
- Arjan Tijms
-
-
Constructor Summary
Constructors Constructor Description ELContextWrapper(ELContext wrapped)Construct EL context wrapper.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectgetContext(Class key)ELResolvergetELResolver()FunctionMappergetFunctionMapper()LocalegetLocale()VariableMappergetVariableMapper()ELContextgetWrapped()booleanisPropertyResolved()voidputContext(Class key, Object contextObject)voidsetLocale(Locale locale)voidsetPropertyResolved(boolean resolved)-
Methods inherited from class jakarta.el.ELContext
addEvaluationListener, convertToType, enterLambdaScope, exitLambdaScope, getEvaluationListeners, getImportHandler, getLambdaArgument, isLambdaArgument, notifyAfterEvaluation, notifyBeforeEvaluation, notifyPropertyResolved, setPropertyResolved
-
-
-
-
Constructor Detail
-
ELContextWrapper
public ELContextWrapper(ELContext wrapped)
Construct EL context wrapper.- Parameters:
wrapped- The EL context to be wrapped.
-
-
Method Detail
-
getWrapped
public ELContext getWrapped()
- Specified by:
getWrappedin interfaceFacesWrapper<ELContext>
-
setPropertyResolved
public void setPropertyResolved(boolean resolved)
- Overrides:
setPropertyResolvedin classELContext
-
isPropertyResolved
public boolean isPropertyResolved()
- Overrides:
isPropertyResolvedin classELContext
-
putContext
public void putContext(Class key, Object contextObject)
- Overrides:
putContextin classELContext
-
getContext
public Object getContext(Class key)
- Overrides:
getContextin classELContext
-
getELResolver
public ELResolver getELResolver()
- Specified by:
getELResolverin classELContext
-
getFunctionMapper
public FunctionMapper getFunctionMapper()
- Specified by:
getFunctionMapperin classELContext
-
getVariableMapper
public VariableMapper getVariableMapper()
- Specified by:
getVariableMapperin classELContext
-
-