public class SpELContext extends Object
SpelExpressionParser and EvaluationContext instances.| Constructor and Description |
|---|
SpELContext(org.springframework.expression.PropertyAccessor accessor)
Creates a new
SpELContext with the given PropertyAccessor. |
SpELContext(SpELContext source,
org.springframework.beans.factory.BeanFactory factory)
Copy constructor to create a
SpELContext using the given one's PropertyAccessor and
SpelExpressionParser as well as the given BeanFactory. |
SpELContext(org.springframework.expression.spel.standard.SpelExpressionParser parser,
org.springframework.expression.PropertyAccessor accessor)
|
| Modifier and Type | Method and Description |
|---|---|
org.springframework.expression.EvaluationContext |
getEvaluationContext(Object source) |
org.springframework.expression.ExpressionParser |
getParser() |
public SpELContext(org.springframework.expression.PropertyAccessor accessor)
accessor - public SpELContext(org.springframework.expression.spel.standard.SpelExpressionParser parser,
org.springframework.expression.PropertyAccessor accessor)
SpELContext using the given SpelExpressionParser and PropertyAccessor. Will
default the SpelExpressionParser in case the given value for it is null.parser - accessor - public SpELContext(SpELContext source, org.springframework.beans.factory.BeanFactory factory)
SpELContext using the given one's PropertyAccessor and
SpelExpressionParser as well as the given BeanFactory.source - factory - public org.springframework.expression.ExpressionParser getParser()
public org.springframework.expression.EvaluationContext getEvaluationContext(Object source)
Copyright © 2011–2017 Pivotal Software, Inc.. All rights reserved.