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:
ProducesBytecode

Method Summary
 java.lang.Object getProperty(java.lang.String name, java.lang.Object contextObj, VariableResolverFactory variableFactory)
          Retrieves the value of the property.
 java.lang.Object setProperty(java.lang.String name, java.lang.Object contextObj, VariableResolverFactory variableFactory, java.lang.Object value)
          Sets the value of the property.
 

Method Detail

getProperty

java.lang.Object getProperty(java.lang.String name,
                             java.lang.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

java.lang.Object setProperty(java.lang.String name,
                             java.lang.Object contextObj,
                             VariableResolverFactory variableFactory,
                             java.lang.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)


Copyright © 2011. All Rights Reserved.