public class ExpressionEvaluatorServiceImpl extends Object implements ExpressionEvaluatorService
| Constructor and Description |
|---|
ExpressionEvaluatorServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addCustomFunctions(org.springframework.expression.spel.support.StandardEvaluationContext context)
Registers custom functions for el expressions with the given context
|
boolean |
containsElPlaceholder(String value) |
Object |
evaluateExpression(Object contextObject,
Map<String,Object> evaluationParameters,
String expressionStr) |
String |
evaluateExpressionTemplate(Object contextObject,
Map<String,Object> evaluationParameters,
String expressionTemplate) |
void |
evaluateObjectExpressions(Object object,
Object contextObject,
Map<String,Object> evaluationParameters) |
protected void |
evaluatePropertyExpressions(Object object,
Object contextObject,
Map<String,Object> evaluationParameters)
Retrieves the Map from the given object that containing the property expressions that should
be evaluated.
|
protected void |
evaluatePropertyReplacers(Object object,
Object contextObject,
Map<String,Object> evaluationParameters)
Iterates through any configured
PropertyReplacer instances for the component and
evaluates the given condition. |
public ExpressionEvaluatorServiceImpl()
public void evaluateObjectExpressions(Object object, Object contextObject, Map<String,Object> evaluationParameters)
evaluateObjectExpressions in interface ExpressionEvaluatorServiceExpressionEvaluatorService.evaluateObjectExpressions(java.lang.Object,
java.lang.Object, java.util.Map)public String evaluateExpressionTemplate(Object contextObject, Map<String,Object> evaluationParameters, String expressionTemplate)
evaluateExpressionTemplate in interface ExpressionEvaluatorServiceExpressionEvaluatorService.evaluateExpressionTemplate(java.lang.Object,
java.util.Map, java.lang.String)public Object evaluateExpression(Object contextObject, Map<String,Object> evaluationParameters, String expressionStr)
evaluateExpression in interface ExpressionEvaluatorServiceExpressionEvaluatorService.evaluateExpression(java.lang.Object,
java.util.Map, java.lang.String)protected void addCustomFunctions(org.springframework.expression.spel.support.StandardEvaluationContext context)
context - - context instance to register functions toprotected void evaluatePropertyReplacers(Object object, Object contextObject, Map<String,Object> evaluationParameters)
PropertyReplacer instances for the component and
evaluates the given condition. If the condition is met, the replacement value is set on the
corresponding propertyobject - - object instance with property replacers list, should be either a component or layout managercontextObject - - context for el evaluationevaluationParameters - - parameters for el evaluationprotected void evaluatePropertyExpressions(Object object, Object contextObject, Map<String,Object> evaluationParameters)
If the expression is an el template (part static text and part expression), only the expression part will be replaced with the result. More than one expressions may be contained within the template
object - - object instance to evaluate expressions forcontextObject - - object providing the default context for expressionsevaluationParameters - - map of additional parameters that may be used within the expressionspublic boolean containsElPlaceholder(String value)
containsElPlaceholder in interface ExpressionEvaluatorServiceExpressionEvaluatorService.containsElPlaceholder(java.lang.String)Copyright © 2005–2016 The Kuali Foundation. All rights reserved.