public class SpelPropertyAccessorRegistrar extends Object
PropertyAccessor
s
in order to register them with the "integrationEvaluationContext" upon initialization.
Accessors must be added before context refresh.Constructor and Description |
---|
SpelPropertyAccessorRegistrar() |
SpelPropertyAccessorRegistrar(Map<String,PropertyAccessor> propertyAccessors)
Create an instance with the provided named property accessors.
|
SpelPropertyAccessorRegistrar(PropertyAccessor... propertyAccessors)
Create an instance with the provided property accessors.
|
Modifier and Type | Method and Description |
---|---|
SpelPropertyAccessorRegistrar |
add(PropertyAccessor... propertyAccessors)
Add the provided property accessors.
|
SpelPropertyAccessorRegistrar |
add(String name,
PropertyAccessor propertyAccessor)
Add the provided named property accessor.
|
Map<String,PropertyAccessor> |
getPropertyAccessors()
Return the registered accessors.
|
public SpelPropertyAccessorRegistrar()
public SpelPropertyAccessorRegistrar(PropertyAccessor... propertyAccessors)
propertyAccessors
- the accessors.public SpelPropertyAccessorRegistrar(Map<String,PropertyAccessor> propertyAccessors)
propertyAccessors
- a map of name:accessor.public Map<String,PropertyAccessor> getPropertyAccessors()
public SpelPropertyAccessorRegistrar add(String name, PropertyAccessor propertyAccessor)
name
- the name.propertyAccessor
- the accessor.public SpelPropertyAccessorRegistrar add(PropertyAccessor... propertyAccessors)
propertyAccessors
- the accessors.