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 an
ExpressionManager
.- Author:
- Tom Baeyens, Dave Syer, Frederik Heremans
-
Field Summary
Modifier and TypeFieldDescriptionprotected ElProvider
protected ELResolver
protected ExpressionFactory
protected FunctionMapper
protected boolean
protected ELContext
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
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
protected ELResolver
createExpression
(String expression) protected FunctionMapper
ValueExpression
createValueExpression
(String expression) protected void
ELContext
getElContext
(VariableScope variableScope) void
setExpressionFactory
(ExpressionFactory expressionFactory)
-
Field Details
-
functions
-
expressionFactory
protected ExpressionFactory expressionFactory -
beans
-
initialized
protected volatile boolean initialized -
elResolver
protected ELResolver elResolver -
functionMapper
protected FunctionMapper functionMapper -
parsingElContext
protected ELContext parsingElContext -
elProvider
-
-
Constructor Details
-
JuelExpressionManager
public JuelExpressionManager() -
JuelExpressionManager
-
-
Method Details
-
createExpression
- Specified by:
createExpression
in interfaceExpressionManager
- Returns:
- a parsed expression
-
addFunction
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
-
setExpressionFactory
public void setExpressionFactory(ExpressionFactory expressionFactory) -
getElContext
-
createElContext
-
createElContext
-
ensureInitialized
protected void ensureInitialized() -
createElResolver
protected ELResolver createElResolver() -
createFunctionMapper
protected FunctionMapper createFunctionMapper() -
toElProvider
- Specified by:
toElProvider
in interfaceElProviderCompatible
- Returns:
- an
ElProvider
-
createElProvider
-