Package org.pentaho.platform.util.beans
Class BeanUtil.EagerFailingCallback
- java.lang.Object
-
- org.pentaho.platform.util.beans.BeanUtil.EagerFailingCallback
-
- All Implemented Interfaces:
ValueSetErrorCallback
- Direct Known Subclasses:
ActionHarness.DefaultActionCallback
- Enclosing class:
- BeanUtil
public static class BeanUtil.EagerFailingCallback extends Object implements ValueSetErrorCallback
-
-
Constructor Summary
Constructors Constructor Description EagerFailingCallback()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
failedToSetValue(Object bean, String propertyName, Object value, String beanPropertyType, Throwable cause)
Fired when the bean utility failed to set a value on your bean.void
propertyNotWritable(Object bean, String propertyName)
Fired if, prior to the value being set, the write-check on the property fails.
-
-
-
Method Detail
-
failedToSetValue
public void failedToSetValue(Object bean, 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 interfaceValueSetErrorCallback
- Parameters:
bean
- the bean on which the value set operation was attemptedpropertyName
- the name of the property that failed to set on the beanvalue
- the value that the bean utility attempted to set on the beanbeanPropertyType
- 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:
Exception
-
propertyNotWritable
public void propertyNotWritable(Object bean, 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 interfaceValueSetErrorCallback
- Parameters:
bean
- the bean on which write test was performedpropertyName
- 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
-
-