Class SimpleContext
java.lang.Object
org.flowable.common.engine.impl.javax.el.ELContext
org.flowable.common.engine.impl.de.odysseus.el.util.SimpleContext
Simple context implementation.
- Author:
- Christoph Beck
-
Constructor Summary
ConstructorsConstructorDescriptionCreate a context.SimpleContext
(ELResolver resolver) Create a context, use the specified resolver. -
Method Summary
Modifier and TypeMethodDescriptionGet our resolver.Get our function mapper.Get our variable mapper.void
setELResolver
(ELResolver resolver) Set our resolver.void
setFunction
(String prefix, String localName, Method method) Define a function.setVariable
(String name, ValueExpression expression) Define a variable.Methods inherited from class org.flowable.common.engine.impl.javax.el.ELContext
getContext, getLocale, isPropertyResolved, putContext, setLocale, setPropertyResolved
-
Constructor Details
-
SimpleContext
public SimpleContext()Create a context. -
SimpleContext
Create a context, use the specified resolver.
-
-
Method Details
-
setFunction
Define a function. -
setVariable
Define a variable. -
getFunctionMapper
Get our function mapper.- Specified by:
getFunctionMapper
in classELContext
- Returns:
- The function mapper to be consulted for the resolution of EL functions.
-
getVariableMapper
Get our variable mapper.- Specified by:
getVariableMapper
in classELContext
- Returns:
- The variable mapper to be consulted for the resolution of EL variables.
-
getELResolver
Get our resolver. Lazy initialize to aSimpleResolver
if necessary.- Specified by:
getELResolver
in classELContext
- Returns:
- The resolver to be consulted for variable and property resolution during expression evaluation.
-
setELResolver
Set our resolver.- Parameters:
resolver
-
-