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 java.lang.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 java.util.Map<java.lang.Object,java.lang.Object>
beans
protected ElProvider
elProvider
protected ELResolver
elResolver
protected ExpressionFactory
expressionFactory
protected FunctionMapper
functionMapper
protected java.util.Map<java.lang.String,java.lang.reflect.Method>
functions
protected boolean
initialized
protected ELContext
parsingElContext
-
Constructor Summary
Constructors Constructor Description JuelExpressionManager()
JuelExpressionManager(java.util.Map<java.lang.Object,java.lang.Object> beans)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addFunction(java.lang.String name, java.lang.reflect.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(java.lang.String expression)
protected FunctionMapper
createFunctionMapper()
ValueExpression
createValueExpression(java.lang.String expression)
protected void
ensureInitialized()
ELContext
getElContext(VariableScope variableScope)
void
setExpressionFactory(ExpressionFactory expressionFactory)
ElProvider
toElProvider()
-
-
-
Field Detail
-
functions
protected java.util.Map<java.lang.String,java.lang.reflect.Method> functions
-
expressionFactory
protected ExpressionFactory expressionFactory
-
beans
protected java.util.Map<java.lang.Object,java.lang.Object> beans
-
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(java.lang.String expression)
- Specified by:
createExpression
in interfaceExpressionManager
- Returns:
- a parsed expression
-
addFunction
public void addFunction(java.lang.String name, java.lang.reflect.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(java.lang.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()
-
-