| Modifier and Type | Class and Description |
|---|---|
| private static class | |
| private static class | |
| private class |
| Modifier and Type | Field and Description |
|---|---|
| private Map | beans
A bean repository local to this context |
| private CompositeELResolver | |
| private ELContext | |
| private ELResolver | |
| private FunctionMapper | |
| private Map | |
| private ELResolver | |
| private VariableMapper |
| Access | Constructor and Description |
|---|---|
| public | StandardELContext(ExpressionFactory
The ExpressionFactory factory)Construct a default ELContext for a stand-alone environment. |
| public | StandardELContext(ELContext
The ELContext that acts as a delegate in most cases context)Construct a StandardELContext from another ELContext. |
| Modifier and Type | Method and Description |
|---|---|
| public void | addELResolver(ELResolver
The new ELResolver to be added to the context cELResolver)Add a custom ELResolver to the context. |
| pack-priv Map | |
| public Object | getContext(Class<T>
The unique identifier that was used to associate the
context object with this key)ELContext.Overrides javax. |
| public ELResolver | Returns: The ELResolver for this context.Implements abstract javax. |
| public FunctionMapper | Returns: The default FunctionMapperImplements abstract javax. |
| public VariableMapper | Returns: The default VariableImplements abstract javax. |
| public void | putContext(Class<T>
The key used by an @{link ELResolver} to identify this
context object. key, Object The context object to add to the collection. contextObject)Overrides javax. ELContext.
|
| beans | back to summary |
|---|---|
| private Map<String, Object> beans A bean repository local to this context | |
| customResolvers | back to summary |
|---|---|
| private CompositeELResolver customResolvers | |
| delegate | back to summary |
|---|---|
| private ELContext delegate | |
| elResolver | back to summary |
|---|---|
| private ELResolver elResolver | |
| functionMapper | back to summary |
|---|---|
| private FunctionMapper functionMapper | |
| initFunctionMap | back to summary |
|---|---|
| private Map<String, Method> initFunctionMap | |
| streamELResolver | back to summary |
|---|---|
| private ELResolver streamELResolver | |
| variableMapper | back to summary |
|---|---|
| private VariableMapper variableMapper | |
| StandardELContext | back to summary |
|---|---|
| public StandardELContext(ExpressionFactory factory) Construct a default ELContext for a stand-alone environment.
| |
| StandardELContext | back to summary |
|---|---|
| public StandardELContext(ELContext context) Construct a StandardELContext from another ELContext.
| |
| addELResolver | back to summary |
|---|---|
| public void addELResolver(ELResolver cELResolver) Add a custom ELResolver to the context. The list of the custom ELResolvers will be accessed in the order they are added. A custom ELResolver added to the context cannot be removed.
| |
| getBeans | back to summary |
|---|---|
| pack-priv Map Get the local bean repository | |
| getContext | back to summary |
|---|---|
| public Object getContext(Class<T> key) Overrides javax. Doc from javax. Returns the context object associated with the given key. The By convention, the object returned will be of the type specified by
the | |
| getELResolver | back to summary |
|---|---|
| public ELResolver getELResolver() Implements abstract javax. Construct (if needed) and return a default ELResolver. Retrieves the
| |
| getFunctionMapper | back to summary |
|---|---|
| public FunctionMapper getFunctionMapper() Implements abstract javax. Construct (if needed) and return a default FunctionMapper.
| |
| getVariableMapper | back to summary |
|---|---|
| public VariableMapper getVariableMapper() Implements abstract javax. Construct (if needed) and return a default VariableMapper() {
| |
| putContext | back to summary |
|---|---|
| public void putContext(Class<T> key, Object contextObject) Overrides javax. Doc from javax. Associates a context object with this The By convention, the | |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | mapFunction(String
the prefix of the function, or "" if no prefix.
For example, prefix, String "fn" in ${fn:method()}, or
"" in ${method()}.the short name of the function. For example,
localName, Method "method" in ${fn:method()}.The static method that is to be invoked, when the function is
referenced. The null value causes the function to be removed from the
map. meth)Overrides javax. |
| public Method | resolveFunction(String
the prefix of the function, or "" if no prefix.
For example, prefix, String "fn" in ${fn:method()}, or
"" in ${method()}.the short name of the function. For example,
localName)"method" in ${fn:method()}.Implements abstract javax. java.lang.Method.
|
| functions | back to summary |
|---|---|
| private Map<String, Method> functions | |
| DefaultFunctionMapper | back to summary |
|---|---|
| pack-priv DefaultFunctionMapper(Map<String, Method> initMap) | |
| mapFunction | back to summary |
|---|---|
| public void mapFunction(String prefix, String localName, Method meth) Overrides javax. Doc from javax. Adds a static method that can be used as a function.
| |
| resolveFunction | back to summary |
|---|---|
| public Method resolveFunction(String prefix, String localName) Implements abstract javax. Doc from javax. Resolves the specified prefix and local name into a
Returns
| |
| Modifier and Type | Field and Description |
|---|---|
| private Map |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public ValueExpression | resolveVariable(String
The variable name variable)Implements abstract javax. |
| public ValueExpression | setVariable(String
The variable name variable, ValueExpression The ValueExpression to be assigned
to the variable. expression)Implements abstract javax. |
| variables | back to summary |
|---|---|
| private Map<String, ValueExpression> variables | |
| DefaultVariableMapper | back to summary |
|---|---|
| private DefaultVariableMapper() | |
| resolveVariable | back to summary |
|---|---|
| public ValueExpression resolveVariable(String variable) Implements abstract javax.
| |
| setVariable | back to summary |
|---|---|
| public ValueExpression setVariable(String variable, ValueExpression expression) Implements abstract javax. Doc from javax. Assign a ValueExpression to an EL variable, replacing
any previously assignment to the same variable.
The assignment for the variable is removed if
the expression is
| |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | canCreateBean(String
The name of the bean beanName)Overrides javax. |
| public Object | getBean(String
The name of the bean. beanName)Overrides javax. |
| public boolean | isNameResolved(String
The name of the bean. beanName)Overrides javax. |
| public boolean | isReadOnly(String
The name of the bean beanName)Overrides javax. |
| public void | setBeanValue(String
The name of the bean beanName, Object The value to set the bean to. Can be value)null.Overrides javax. |
| LocalBeanNameResolver | back to summary |
|---|---|
| private LocalBeanNameResolver() | |
| canCreateBean | back to summary |
|---|---|
| public boolean canCreateBean(String beanName) Overrides javax. Doc from javax. Allow creating a bean of the given name if it does not exist. | |
| getBean | back to summary |
|---|---|
| public Object getBean(String beanName) Overrides javax. Doc from javax. Returns the bean known by its name. | |
| isNameResolved | back to summary |
|---|---|
| public boolean isNameResolved(String beanName) Overrides javax. Doc from javax. Returns whether the given name is resolved by the BeanNameResolver | |
| isReadOnly | back to summary |
|---|---|
| public boolean isReadOnly(String beanName) Overrides javax. Doc from javax. Indicates if the bean of the given name is read-only or writable | |
| setBeanValue | back to summary |
|---|---|
| public void setBeanValue(String beanName, Object value) Overrides javax. Doc from javax. Sets a value to a bean of the given name.
If the bean of the given name
does not exist and if | |