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 org.camunda.bpm.impl.juel.jakarta.el.ELResolver
protected org.camunda.bpm.impl.juel.jakarta.el.ExpressionFactory
protected org.camunda.bpm.impl.juel.jakarta.el.FunctionMapper
protected boolean
protected org.camunda.bpm.impl.juel.jakarta.el.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) org.camunda.bpm.impl.juel.jakarta.el.ELContext
createElContext
(VariableContext variableContext) protected ElProvider
protected org.camunda.bpm.impl.juel.jakarta.el.ELResolver
createExpression
(String expression) protected org.camunda.bpm.impl.juel.jakarta.el.FunctionMapper
org.camunda.bpm.impl.juel.jakarta.el.ValueExpression
createValueExpression
(String expression) protected void
org.camunda.bpm.impl.juel.jakarta.el.ELContext
getElContext
(VariableScope variableScope) void
setExpressionFactory
(org.camunda.bpm.impl.juel.jakarta.el.ExpressionFactory expressionFactory)
-
Field Details
-
functions
-
expressionFactory
protected org.camunda.bpm.impl.juel.jakarta.el.ExpressionFactory expressionFactory -
beans
-
initialized
protected volatile boolean initialized -
elResolver
protected org.camunda.bpm.impl.juel.jakarta.el.ELResolver elResolver -
functionMapper
protected org.camunda.bpm.impl.juel.jakarta.el.FunctionMapper functionMapper -
parsingElContext
protected org.camunda.bpm.impl.juel.jakarta.el.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
public org.camunda.bpm.impl.juel.jakarta.el.ValueExpression createValueExpression(String expression) -
setExpressionFactory
public void setExpressionFactory(org.camunda.bpm.impl.juel.jakarta.el.ExpressionFactory expressionFactory) -
getElContext
-
createElContext
public org.camunda.bpm.impl.juel.jakarta.el.ELContext createElContext(VariableContext variableContext) -
createElContext
-
ensureInitialized
protected void ensureInitialized() -
createElResolver
protected org.camunda.bpm.impl.juel.jakarta.el.ELResolver createElResolver() -
createFunctionMapper
protected org.camunda.bpm.impl.juel.jakarta.el.FunctionMapper createFunctionMapper() -
toElProvider
- Specified by:
toElProvider
in interfaceElProviderCompatible
- Returns:
- an
ElProvider
-
createElProvider
-