Class SpELContext
java.lang.Object
org.springframework.data.mapping.model.SpELContext
Simple factory to create
SpelExpressionParser
and EvaluationContext
instances.- Author:
- Oliver Gierke
-
Constructor Summary
ConstructorDescriptionSpELContext
(SpELContext source, org.springframework.beans.factory.BeanFactory factory) Copy constructor to create aSpELContext
using the given one'sPropertyAccessor
andSpelExpressionParser
as well as the givenBeanFactory
.SpELContext
(org.springframework.expression.PropertyAccessor accessor) Creates a newSpELContext
with the givenPropertyAccessor
.SpELContext
(org.springframework.expression.spel.standard.SpelExpressionParser parser, org.springframework.expression.PropertyAccessor accessor) -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.expression.EvaluationContext
getEvaluationContext
(Object source) org.springframework.expression.ExpressionParser
-
Constructor Details
-
SpELContext
public SpELContext(org.springframework.expression.PropertyAccessor accessor) - Parameters:
accessor
-
-
SpELContext
public SpELContext(org.springframework.expression.spel.standard.SpelExpressionParser parser, org.springframework.expression.PropertyAccessor accessor) Creates a newSpELContext
using the givenSpelExpressionParser
andPropertyAccessor
. Will default theSpelExpressionParser
in case the given value for it is null.- Parameters:
parser
-accessor
-
-
SpELContext
Copy constructor to create aSpELContext
using the given one'sPropertyAccessor
andSpelExpressionParser
as well as the givenBeanFactory
.- Parameters:
source
-factory
-
-
-
Method Details
-
getParser
public org.springframework.expression.ExpressionParser getParser() -
getEvaluationContext
-