public static class ActionHarness.VarArgsWrapperCallback extends Object implements ValueSetErrorCallback
Constructor and Description |
---|
VarArgsWrapperCallback(Map<String,Object> varArgsMap) |
Modifier and Type | Method and Description |
---|---|
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) |
public void setWrappedCallback(ValueSetErrorCallback wrappedCallback)
public void failedToSetValue(Object targetBean, String propertyName, Object value, String beanPropertyType, Throwable cause) throws Exception
ValueSetErrorCallback
failedToSetValue
in interface ValueSetErrorCallback
targetBean
- 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 failureException
public void propertyNotWritable(Object targetBean, String propertyName) throws Exception
ValueSetErrorCallback
propertyNotWritable
in interface ValueSetErrorCallback
targetBean
- the bean on which write test was performedpropertyName
- the name of the property that is not writable on the beanException
- throw an exception if you consider this to be a terminal conditionCopyright © 2017 Hitachi Vantara. All rights reserved.