Package de.odysseus.el.util
Class SimpleContext
java.lang.Object
javax.el.ELContext
de.odysseus.el.util.SimpleContext
public class SimpleContext
extends javax.el.ELContext
Simple context implementation.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static class(package private) static class -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate SimpleContext.Functionsprivate javax.el.ELResolverprivate SimpleContext.Variables -
Constructor Summary
ConstructorsConstructorDescriptionCreate a context.SimpleContext(javax.el.ELResolver resolver) Create a context, use the specified resolver. -
Method Summary
Modifier and TypeMethodDescriptionjavax.el.ELResolverGet our resolver.javax.el.FunctionMapperGet our function mapper.javax.el.VariableMapperGet our variable mapper.voidsetELResolver(javax.el.ELResolver resolver) Set our resolver.voidsetFunction(String prefix, String localName, Method method) Define a function.javax.el.ValueExpressionsetVariable(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 Details
-
functions
-
variables
-
resolver
private javax.el.ELResolver resolver
-
-
Constructor Details
-
SimpleContext
public SimpleContext()Create a context. -
SimpleContext
public SimpleContext(javax.el.ELResolver resolver) Create a context, use the specified resolver.
-
-
Method Details
-
setFunction
Define a function. -
setVariable
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-
-