| 程序包 | 说明 |
|---|---|
| org.springframework.expression.spel.support |
SpEL's default implementations for various core abstractions.
|
| 限定符和类型 | 方法和说明 |
|---|---|
static SimpleEvaluationContext.Builder |
SimpleEvaluationContext.forPropertyAccessors(PropertyAccessor... accessors)
Create a
SimpleEvaluationContext for the specified PropertyAccessor
delegates: typically a custom PropertyAccessor specific to a use case
(e.g. attribute resolution in a custom data structure), potentially combined with
a DataBindingPropertyAccessor if property dereferences are needed as well. |
static SimpleEvaluationContext.Builder |
SimpleEvaluationContext.forReadOnlyDataBinding()
Create a
SimpleEvaluationContext for read-only access to
public properties via DataBindingPropertyAccessor. |
static SimpleEvaluationContext.Builder |
SimpleEvaluationContext.forReadWriteDataBinding()
Create a
SimpleEvaluationContext for read-write access to
public properties via DataBindingPropertyAccessor. |
SimpleEvaluationContext.Builder |
SimpleEvaluationContext.Builder.withConversionService(org.springframework.core.convert.ConversionService conversionService)
Register a custom
ConversionService. |
SimpleEvaluationContext.Builder |
SimpleEvaluationContext.Builder.withInstanceMethods()
Register a
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. |
SimpleEvaluationContext.Builder |
SimpleEvaluationContext.Builder.withMethodResolvers(MethodResolver... resolvers)
Register the specified
MethodResolver delegates for
a combination of property access and method resolution. |
SimpleEvaluationContext.Builder |
SimpleEvaluationContext.Builder.withRootObject(Object rootObject)
Specify a default root object to resolve against.
|
SimpleEvaluationContext.Builder |
SimpleEvaluationContext.Builder.withTypeConverter(TypeConverter converter)
Register a custom
TypeConverter. |
SimpleEvaluationContext.Builder |
SimpleEvaluationContext.Builder.withTypedRootObject(Object rootObject,
org.springframework.core.convert.TypeDescriptor typeDescriptor)
Specify a typed root object to resolve against.
|