类 SimpleEvaluationContext.Builder
java.lang.Object
cn.taketoday.expression.spel.support.SimpleEvaluationContext.Builder
Builder for
SimpleEvaluationContext.-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明build()withConversionService(ConversionService conversionService) Register a customConversionService.Register aDataBindingMethodResolverfor instance method invocation purposes (i.e. not supporting static methods) in addition to the specified property accessors, typically in combination with aDataBindingPropertyAccessor.withMethodResolvers(MethodResolver... resolvers) Register the specifiedMethodResolverdelegates for a combination of property access and method resolution.withRootObject(Object rootObject) Specify a default root object to resolve against.withTypeConverter(TypeConverter converter) Register a customTypeConverter.withTypedRootObject(Object rootObject, TypeDescriptor typeDescriptor) Specify a typed root object to resolve against.
-
构造器详细资料
-
Builder
-
-
方法详细资料
-
withMethodResolvers
Register the specifiedMethodResolverdelegates for a combination of property access and method resolution.- 参数:
resolvers- the resolver delegates to use- 另请参阅:
-
withInstanceMethods
Register aDataBindingMethodResolverfor instance method invocation purposes (i.e. not supporting static methods) in addition to the specified property accessors, typically in combination with aDataBindingPropertyAccessor. -
withConversionService
Register a customConversionService.By default a
StandardTypeConverterbacked by aDefaultConversionServiceis used. -
withTypeConverter
Register a customTypeConverter.By default a
StandardTypeConverterbacked by aDefaultConversionServiceis used. -
withRootObject
Specify a default root object to resolve against.Default is none, expecting an object argument at evaluation time.
-
withTypedRootObject
public SimpleEvaluationContext.Builder withTypedRootObject(Object rootObject, TypeDescriptor typeDescriptor) Specify a typed root object to resolve against.Default is none, expecting an object argument at evaluation time.
-
build
-