public class SpELContext extends Object
SpelExpressionParser
and EvaluationContext
instances.Constructor and Description |
---|
SpELContext(PropertyAccessor accessor)
Creates a new
SpELContext with the given PropertyAccessor . |
SpELContext(SpELContext source,
BeanFactory factory)
Copy constructor to create a
SpELContext using the given one's PropertyAccessor and
SpelExpressionParser as well as the given BeanFactory . |
SpELContext(SpelExpressionParser parser,
PropertyAccessor accessor)
|
Modifier and Type | Method and Description |
---|---|
EvaluationContext |
getEvaluationContext(Object source) |
ExpressionParser |
getParser() |
public SpELContext(PropertyAccessor accessor)
accessor
- public SpELContext(SpelExpressionParser parser, 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, BeanFactory factory)
SpELContext
using the given one's PropertyAccessor
and
SpelExpressionParser
as well as the given BeanFactory
.source
- factory
- public ExpressionParser getParser()
public EvaluationContext getEvaluationContext(Object source)
Copyright © 2011–2023 Pivotal Software, Inc.. All rights reserved.