Class SpELContext
java.lang.Object
org.springframework.data.mapping.model.SpELContext
- All Implemented Interfaces:
EvaluationContextProvider
Simple factory to create
SpelExpressionParser
and EvaluationContext
instances.- Author:
- Oliver Gierke
-
Field Summary
Fields inherited from interface org.springframework.data.spel.EvaluationContextProvider
DEFAULT
-
Constructor Summary
ConstructorDescriptionSpELContext
(SpELContext source, BeanFactory factory) Copy constructor to create aSpELContext
using the given one'sPropertyAccessor
andSpelExpressionParser
as well as the givenBeanFactory
.SpELContext
(PropertyAccessor accessor) Creates a newSpELContext
with the givenPropertyAccessor
.SpELContext
(SpelExpressionParser parser, PropertyAccessor accessor) -
Method Summary
Modifier and TypeMethodDescriptiongetEvaluationContext
(Object source) Return aEvaluationContext
built using the given parameter values.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.data.spel.EvaluationContextProvider
getEvaluationContext
-
Constructor Details
-
SpELContext
- Parameters:
accessor
-
-
SpELContext
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
-
getEvaluationContext
Description copied from interface:EvaluationContextProvider
Return aEvaluationContext
built using the given parameter values.- Specified by:
getEvaluationContext
in interfaceEvaluationContextProvider
- Parameters:
source
- the root object to set in theEvaluationContext
.- Returns:
-