Package org.omnifaces.el
Class ELContextWrapper
- 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
ELContext
that can be sub-classed by developers wishing to provide specialized behavior to an existingELContext
instance. 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 Object
getContext(Class key)
ELResolver
getELResolver()
FunctionMapper
getFunctionMapper()
Locale
getLocale()
VariableMapper
getVariableMapper()
ELContext
getWrapped()
boolean
isPropertyResolved()
void
putContext(Class key, Object contextObject)
void
setLocale(Locale locale)
void
setPropertyResolved(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:
getWrapped
in interfaceFacesWrapper<ELContext>
-
setPropertyResolved
public void setPropertyResolved(boolean resolved)
- Overrides:
setPropertyResolved
in classELContext
-
isPropertyResolved
public boolean isPropertyResolved()
- Overrides:
isPropertyResolved
in classELContext
-
putContext
public void putContext(Class key, Object contextObject)
- Overrides:
putContext
in classELContext
-
getContext
public Object getContext(Class key)
- Overrides:
getContext
in classELContext
-
getELResolver
public ELResolver getELResolver()
- Specified by:
getELResolver
in classELContext
-
getFunctionMapper
public FunctionMapper getFunctionMapper()
- Specified by:
getFunctionMapper
in classELContext
-
getVariableMapper
public VariableMapper getVariableMapper()
- Specified by:
getVariableMapper
in classELContext
-
-