Package de.odysseus.el.util
Class SimpleContext
- java.lang.Object
-
- javax.el.ELContext
-
- de.odysseus.el.util.SimpleContext
-
public class SimpleContext extends javax.el.ELContextSimple context implementation.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static classSimpleContext.Functions(package private) static classSimpleContext.Variables
-
Field Summary
Fields Modifier and Type Field Description private SimpleContext.Functionsfunctionsprivate javax.el.ELResolverresolverprivate SimpleContext.Variablesvariables
-
Constructor Summary
Constructors Constructor Description SimpleContext()Create a context.SimpleContext(javax.el.ELResolver resolver)Create a context, use the specified resolver.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.el.ELResolvergetELResolver()Get our resolver.javax.el.FunctionMappergetFunctionMapper()Get our function mapper.javax.el.VariableMappergetVariableMapper()Get our variable mapper.voidsetELResolver(javax.el.ELResolver resolver)Set our resolver.voidsetFunction(java.lang.String prefix, java.lang.String localName, java.lang.reflect.Method method)Define a function.javax.el.ValueExpressionsetVariable(java.lang.String name, javax.el.ValueExpression expression)Define a variable.-
Methods inherited from class javax.el.ELContext
addEvaluationListener, convertToType, enterLambdaScope, exitLambdaScope, getContext, getEvaluationListeners, getImportHandler, getLambdaArgument, getLocale, isLambdaArgument, isPropertyResolved, notifyAfterEvaluation, notifyBeforeEvaluation, notifyPropertyResolved, putContext, setLocale, setPropertyResolved, setPropertyResolved
-
-
-
-
Field Detail
-
functions
private SimpleContext.Functions functions
-
variables
private SimpleContext.Variables variables
-
resolver
private javax.el.ELResolver resolver
-
-
Method Detail
-
setFunction
public void setFunction(java.lang.String prefix, java.lang.String localName, java.lang.reflect.Method method)Define a function.
-
setVariable
public javax.el.ValueExpression setVariable(java.lang.String name, javax.el.ValueExpression expression)Define a variable.
-
getFunctionMapper
public javax.el.FunctionMapper getFunctionMapper()
Get our function mapper.- Specified by:
getFunctionMapperin classjavax.el.ELContext
-
getVariableMapper
public javax.el.VariableMapper getVariableMapper()
Get our variable mapper.- Specified by:
getVariableMapperin classjavax.el.ELContext
-
getELResolver
public javax.el.ELResolver getELResolver()
Get our resolver. Lazy initialize to aSimpleResolverif necessary.- Specified by:
getELResolverin classjavax.el.ELContext
-
setELResolver
public void setELResolver(javax.el.ELResolver resolver)
Set our resolver.- Parameters:
resolver-
-
-