|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.el.ELContext
javax.el.StandardELContext
public class StandardELContext
A standard ELContext suitable for use in a stand alone environment. This class provides a default implementation of an ELResolver that contains a number of useful ELResolvers. It also provides local repositories for the FunctionMapper, VariableMapper, and BeanNameResolver.
| Constructor Summary | |
|---|---|
StandardELContext(ELContext context)
Construct a StandardELContext from another ELContext. |
|
StandardELContext(ExpressionFactory factory)
Construct a default ELContext for a stand-alone environment. |
|
| Method Summary | |
|---|---|
void |
addELResolver(ELResolver cELResolver)
Add a custom ELResolver to the context. |
java.lang.Object |
getContext(java.lang.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(java.lang.Class key,
java.lang.Object contextObject)
Associates a context object with this ELContext. |
| Methods inherited from class javax.el.ELContext |
|---|
addEvaluationListener, convertToType, enterLambdaScope, exitLambdaScope, getEvaluationListeners, getLambdaArgument, getLocale, isLambdaArgument, isPropertyResolved, setLocale, setPropertyResolved, setPropertyResolved |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StandardELContext(ExpressionFactory factory)
factory - The ExpressionFactorypublic StandardELContext(ELContext context)
context - The ELContext that acts as a delegate in most cases| Method Detail |
|---|
public void putContext(java.lang.Class key,
java.lang.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 java.lang.Object getContext(java.lang.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 implementing the Linq query operatorsStaticFieldELResolver for resolving static fieldsMapELResolver for resolving Map propertiesResourceBundleELResolver for resolving ResourceBundle propertiesListELResolver for resolving List propertiesArrayELResolver for resolving array propertiesBeanELResolver for resolving bean properties
getELResolver 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 ELContext
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||