public class BeanPropertySetter extends Object
| Constructor and Description |
|---|
BeanPropertySetter(Object target,
Field propertyField)
New BeanPropertySetter that don't report failure
|
BeanPropertySetter(Object target,
Field propertyField,
boolean reportNoSetterFound)
New BeanPropertySetter
|
public BeanPropertySetter(Object target, Field propertyField, boolean reportNoSetterFound)
target - The target on which the setter must be invokedpropertyField - The field that should be accessed with the setterreportNoSetterFound - Allow the set method to raise an Exception if the setter cannot be foundpublic boolean set(Object value)
BeanPropertySettervalue - the new value to pass to the property settertrue if the value has been injected, false otherwiseRuntimeException - Can be thrown if the setter threw an exception, if the setter is not accessible
or, if reportNoSetterFound and setter could not be found.