类的使用
cn.taketoday.expression.spel.support.SimpleEvaluationContext.Builder
程序包
说明
SpEL's default implementations for various core abstractions.
-
cn.taketoday.expression.spel.support中SimpleEvaluationContext.Builder的使用
修饰符和类型方法说明SimpleEvaluationContext.forPropertyAccessors(PropertyAccessor... accessors) Create aSimpleEvaluationContextfor the specifiedPropertyAccessordelegates: typically a customPropertyAccessorspecific to a use case (e.g. attribute resolution in a custom data structure), potentially combined with aDataBindingPropertyAccessorif property dereferences are needed as well.SimpleEvaluationContext.forReadOnlyDataBinding()Create aSimpleEvaluationContextfor read-only access to public properties viaDataBindingPropertyAccessor.SimpleEvaluationContext.forReadWriteDataBinding()Create aSimpleEvaluationContextfor read-write access to public properties viaDataBindingPropertyAccessor.SimpleEvaluationContext.Builder.withConversionService(ConversionService conversionService) Register a customConversionService.SimpleEvaluationContext.Builder.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.SimpleEvaluationContext.Builder.withMethodResolvers(MethodResolver... resolvers) Register the specifiedMethodResolverdelegates for a combination of property access and method resolution.SimpleEvaluationContext.Builder.withRootObject(Object rootObject) Specify a default root object to resolve against.SimpleEvaluationContext.Builder.withTypeConverter(TypeConverter converter) Register a customTypeConverter.SimpleEvaluationContext.Builder.withTypedRootObject(Object rootObject, TypeDescriptor typeDescriptor) Specify a typed root object to resolve against.