org.pentaho.platform.util.beans
Class ActionHarness.VarArgsWrapperCallback

java.lang.Object
  extended by org.pentaho.platform.util.beans.ActionHarness.VarArgsWrapperCallback
All Implemented Interfaces:
ValueSetErrorCallback
Enclosing class:
ActionHarness

public static class ActionHarness.VarArgsWrapperCallback
extends Object
implements ValueSetErrorCallback


Constructor Summary
ActionHarness.VarArgsWrapperCallback(Map<String,Object> varArgsMap)
           
 
Method Summary
 void failedToSetValue(Object targetBean, String propertyName, Object value, String beanPropertyType, Throwable cause)
          Fired when the bean utility failed to set a value on your bean.
 void propertyNotWritable(Object targetBean, String propertyName)
          Fired if, prior to the value being set, the write-check on the property fails.
 void setValue(Object value)
           
 void setWrappedCallback(ValueSetErrorCallback wrappedCallback)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ActionHarness.VarArgsWrapperCallback

public ActionHarness.VarArgsWrapperCallback(Map<String,Object> varArgsMap)
Method Detail

setWrappedCallback

public void setWrappedCallback(ValueSetErrorCallback wrappedCallback)

setValue

public void setValue(Object value)
              throws Exception
Throws:
Exception

failedToSetValue

public void failedToSetValue(Object targetBean,
                             String propertyName,
                             Object value,
                             String beanPropertyType,
                             Throwable cause)
                      throws Exception
Description copied from interface: ValueSetErrorCallback
Fired when the bean utility failed to set a value on your bean.

Specified by:
failedToSetValue in interface ValueSetErrorCallback
Parameters:
targetBean - the bean on which the value set operation was attempted
propertyName - the name of the property that failed to set on the bean
value - the value that the bean utility attempted to set on the bean
beanPropertyType - the type of the bean property on which we tried to set the value. This may not be the same type as that of the value.
cause - the reason for the failure
Throws:
ActionExecutionException - throw this exception if you consider this a terminal condition
Exception

propertyNotWritable

public void propertyNotWritable(Object targetBean,
                                String propertyName)
                         throws Exception
Description copied from interface: ValueSetErrorCallback
Fired if, prior to the value being set, the write-check on the property fails.

Specified by:
propertyNotWritable in interface ValueSetErrorCallback
Parameters:
targetBean - the bean on which write test was performed
propertyName - the name of the property that is not writable on the bean
Throws:
Exception - throw an exception if you consider this to be a terminal condition