Package org.mvel2.integration
Interface PropertyHandler
-
public interface PropertyHandlerThis interface allows an external property handler to resolve a property against the provided context.- See Also:
ProducesBytecode
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ObjectgetProperty(String name, Object contextObj, VariableResolverFactory variableFactory)Retrieves the value of the property.ObjectsetProperty(String name, Object contextObj, VariableResolverFactory variableFactory, Object value)Sets the value of the property.
-
-
-
Method Detail
-
getProperty
Object getProperty(String name, Object contextObj, VariableResolverFactory variableFactory)
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)
-
-