Class SpelPropertyAccessorRegistrar
java.lang.Object
org.springframework.integration.expression.SpelPropertyAccessorRegistrar
public class SpelPropertyAccessorRegistrar
extends java.lang.Object
Utility class that keeps track of a Set of SpEL
PropertyAccessor
s
in order to register them with the "integrationEvaluationContext" upon initialization.
Accessors must be added before context refresh.- Since:
- 3.0
-
Constructor Summary
Constructors Constructor Description SpelPropertyAccessorRegistrar()
SpelPropertyAccessorRegistrar(java.util.Map<java.lang.String,org.springframework.expression.PropertyAccessor> propertyAccessors)
Create an instance with the provided named property accessors.SpelPropertyAccessorRegistrar(org.springframework.expression.PropertyAccessor... propertyAccessors)
Create an instance with the provided property accessors. -
Method Summary
Modifier and Type Method Description SpelPropertyAccessorRegistrar
add(java.lang.String name, org.springframework.expression.PropertyAccessor propertyAccessor)
Add the provided named property accessor.SpelPropertyAccessorRegistrar
add(org.springframework.expression.PropertyAccessor... propertyAccessors)
Add the provided property accessors.java.util.Map<java.lang.String,org.springframework.expression.PropertyAccessor>
getPropertyAccessors()
Return the registered accessors.
-
Constructor Details
-
SpelPropertyAccessorRegistrar
public SpelPropertyAccessorRegistrar() -
SpelPropertyAccessorRegistrar
public SpelPropertyAccessorRegistrar(org.springframework.expression.PropertyAccessor... propertyAccessors)Create an instance with the provided property accessors. Each accessor name will be the class simple name.- Parameters:
propertyAccessors
- the accessors.- Since:
- 4.3.8
-
SpelPropertyAccessorRegistrar
public SpelPropertyAccessorRegistrar(java.util.Map<java.lang.String,org.springframework.expression.PropertyAccessor> propertyAccessors)Create an instance with the provided named property accessors.- Parameters:
propertyAccessors
- a map of name:accessor.- Since:
- 4.3.8
-
-
Method Details
-
getPropertyAccessors
public java.util.Map<java.lang.String,org.springframework.expression.PropertyAccessor> getPropertyAccessors()Return the registered accessors.- Returns:
- the map of name:accessor.
- Since:
- 4.3.8
-
add
public SpelPropertyAccessorRegistrar add(java.lang.String name, org.springframework.expression.PropertyAccessor propertyAccessor)Add the provided named property accessor.- Parameters:
name
- the name.propertyAccessor
- the accessor.- Returns:
- this registrar.
- Since:
- 4.3.8
-
add
public SpelPropertyAccessorRegistrar add(org.springframework.expression.PropertyAccessor... propertyAccessors)Add the provided property accessors. Each accessor name will be the class simple name.- Parameters:
propertyAccessors
- the accessors.- Returns:
- this registrar.
- Since:
- 4.3.8
-