public static final class SimpleEvaluationContext.Builder extends Object
SimpleEvaluationContext
.public SimpleEvaluationContext.Builder withAssignmentDisabled()
SimpleEvaluationContext.isAssignmentEnabled()
public SimpleEvaluationContext.Builder withMethodResolvers(MethodResolver... resolvers)
MethodResolver
delegates for
a combination of property access and method resolution.resolvers
- the resolver delegates to usewithInstanceMethods()
,
SimpleEvaluationContext.forPropertyAccessors(org.springframework.expression.PropertyAccessor...)
public SimpleEvaluationContext.Builder withInstanceMethods()
DataBindingMethodResolver
for instance method invocation purposes
(i.e. not supporting static methods) in addition to the specified property accessors,
typically in combination with a DataBindingPropertyAccessor
.public SimpleEvaluationContext.Builder withConversionService(ConversionService conversionService)
ConversionService
.
By default a StandardTypeConverter
backed by a
DefaultConversionService
is used.
public SimpleEvaluationContext.Builder withTypeConverter(TypeConverter converter)
TypeConverter
.
By default a StandardTypeConverter
backed by a
DefaultConversionService
is used.
public SimpleEvaluationContext.Builder withRootObject(Object rootObject)
Default is none, expecting an object argument at evaluation time.
public SimpleEvaluationContext.Builder withTypedRootObject(Object rootObject, TypeDescriptor typeDescriptor)
Default is none, expecting an object argument at evaluation time.
public SimpleEvaluationContext build()