public class StandardELContext extends ELContext
| Constructor and Description |
|---|
StandardELContext(ELContext context)
Construct a StandardELContext from another ELContext.
|
StandardELContext(ExpressionFactory factory)
Construct a default ELContext for a stand-alone environment.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addELResolver(ELResolver cELResolver)
Add a custom ELResolver to the context.
|
Object |
getContext(Class key)
Returns the context object associated with the given key.
|
ELResolver |
getELResolver()
Construct (if needed) and return a default ELResolver.
|
FunctionMapper |
getFunctionMapper()
Construct (if needed) and return a default FunctionMapper.
|
ImportHandler |
getImportHandler()
Construct (if need) and return an ImportHandler
|
VariableMapper |
getVariableMapper()
Construct (if needed) and return a default VariableMapper() {
|
void |
putContext(Class key,
Object contextObject)
Associates a context object with this
ELContext. |
addEvaluationListener, convertToType, enterLambdaScope, exitLambdaScope, getEvaluationListeners, getLambdaArgument, getLocale, isLambdaArgument, isPropertyResolved, notifyAfterEvaluation, notifyBeforeEvaluation, notifyPropertyResolved, setLocale, setPropertyResolved, setPropertyResolvedpublic StandardELContext(ExpressionFactory factory)
factory - The ExpressionFactorypublic StandardELContext(ELContext context)
context - The ELContext that acts as a delegate in most casespublic void putContext(Class key, Object contextObject)
ELContextELContext.
The ELContext maintains a collection of context objects
relevant to the evaluation of an expression. These context objects
are used by ELResolvers. This method is used to
add a context object to that collection.
By convention, the contextObject will be of the
type specified by the key. However, this is not
required and the key is used strictly as a unique identifier.
putContext in class ELContextkey - The key used by an @{link ELResolver} to identify this
context object.contextObject - The context object to add to the collection.public Object getContext(Class key)
ELContextThe ELContext maintains a collection of context objects
relevant to the evaluation of an expression. These context objects
are used by ELResolvers. This method is used to
retrieve the context with the given key from the collection.
By convention, the object returned will be of the type specified by
the key. However, this is not required and the key is
used strictly as a unique identifier.
getContext in class ELContextkey - The unique identifier that was used to associate the
context object with this ELContext.public ELResolver getELResolver()
Retrieves the ELResolver associated with this context.
This is a CompositeELResover consists of an ordered list of
ELResolvers.
BeanNameELResolver for beans defined locallyELResolversELResolver supporting the collection operationsStaticFieldELResolver for resolving static fieldsMapELResolver for resolving Map propertiesResourceBundleELResolver for resolving ResourceBundle propertiesListELResolver for resolving List propertiesArrayELResolver for resolving array propertiesBeanELResolver for resolving bean propertiesgetELResolver in class ELContextpublic void addELResolver(ELResolver cELResolver)
cELResolver - The new ELResolver to be added to the contextpublic ImportHandler getImportHandler()
getImportHandler in class ELContextpublic FunctionMapper getFunctionMapper()
getFunctionMapper in class ELContextpublic VariableMapper getVariableMapper()
getVariableMapper in class ELContextCopyright © 2013. All Rights Reserved.