Package org.mvel2.integration
Interface PropertyHandler
public interface PropertyHandler
This interface allows an external property handler to resolve a property against the provided context.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiongetProperty
(String name, Object contextObj, VariableResolverFactory variableFactory) Retrieves the value of the property.setProperty
(String name, Object contextObj, VariableResolverFactory variableFactory, Object value) Sets the value of the property.
-
Method Details
-
getProperty
Retrieves the value of the property.- Parameters:
name
- - the name of the property to be resolved.contextObj
- - the current context object.variableFactory
- - the root variable factory provided by the runtime.- Returns:
- - the value of the property.
-
setProperty
Object setProperty(String name, Object contextObj, VariableResolverFactory variableFactory, Object value) Sets the value of the property.- Parameters:
name
- - the name of the property to be resolved.contextObj
- - the current context object.variableFactory
- - the root variable factory provided by the runtime.value
- - the value to be set to the resolved property- Returns:
- - the resultant value of the property (should normally be the same as the value passed)
-