Package org.camunda.bpm.engine.impl.el
Class JuelExpressionManager
- java.lang.Object
-
- org.camunda.bpm.engine.impl.el.JuelExpressionManager
-
- All Implemented Interfaces:
ElProviderCompatible
,ExpressionManager
- Direct Known Subclasses:
CdiExpressionManager
,MockExpressionManager
,SpringExpressionManager
public class JuelExpressionManager extends Object implements ExpressionManager, ElProviderCompatible
JUEL-specific implementation of anExpressionManager
.- Author:
- Tom Baeyens, Dave Syer, Frederik Heremans
-
-
Field Summary
Fields Modifier and Type Field Description protected Map<Object,Object>
beans
protected ElProvider
elProvider
protected ELResolver
elResolver
protected ExpressionFactory
expressionFactory
protected FunctionMapper
functionMapper
protected Map<String,Method>
functions
protected boolean
initialized
protected ELContext
parsingElContext
-
Constructor Summary
Constructors Constructor Description JuelExpressionManager()
JuelExpressionManager(Map<Object,Object> beans)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addFunction(String name, Method function)
Adds a custom function to the expression manager that can be used in expression evaluation later on.protected ProcessEngineElContext
createElContext(VariableScope variableScope)
ELContext
createElContext(VariableContext variableContext)
protected ElProvider
createElProvider()
protected ELResolver
createElResolver()
Expression
createExpression(String expression)
protected FunctionMapper
createFunctionMapper()
ValueExpression
createValueExpression(String expression)
protected void
ensureInitialized()
ELContext
getElContext(VariableScope variableScope)
void
setExpressionFactory(ExpressionFactory expressionFactory)
ElProvider
toElProvider()
-
-
-
Field Detail
-
expressionFactory
protected ExpressionFactory expressionFactory
-
initialized
protected volatile boolean initialized
-
elResolver
protected ELResolver elResolver
-
functionMapper
protected FunctionMapper functionMapper
-
parsingElContext
protected ELContext parsingElContext
-
elProvider
protected volatile ElProvider elProvider
-
-
Method Detail
-
createExpression
public Expression createExpression(String expression)
- Specified by:
createExpression
in interfaceExpressionManager
- Returns:
- a parsed expression
-
addFunction
public void addFunction(String name, Method function)
Description copied from interface:ExpressionManager
Adds a custom function to the expression manager that can be used in expression evaluation later on. Ideally, use this in the setup phase of the expression manager, i.e. before the first invocation of
createExpression
.- Specified by:
addFunction
in interfaceExpressionManager
-
createValueExpression
public ValueExpression createValueExpression(String expression)
-
setExpressionFactory
public void setExpressionFactory(ExpressionFactory expressionFactory)
-
getElContext
public ELContext getElContext(VariableScope variableScope)
-
createElContext
public ELContext createElContext(VariableContext variableContext)
-
createElContext
protected ProcessEngineElContext createElContext(VariableScope variableScope)
-
ensureInitialized
protected void ensureInitialized()
-
createElResolver
protected ELResolver createElResolver()
-
createFunctionMapper
protected FunctionMapper createFunctionMapper()
-
toElProvider
public ElProvider toElProvider()
- Specified by:
toElProvider
in interfaceElProviderCompatible
- Returns:
- an
ElProvider
-
createElProvider
protected ElProvider createElProvider()
-
-