public class FieldReflectionAccessor extends PropertyAccessorSupport implements PropertyAccessor
PropertyAccessor that uses reflection to access a public field.| Constructor and Description |
|---|
FieldReflectionAccessor(Field field,
int constructorArgumentIndex)
Constructs a new FieldReflectionAccessor.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
getValue(Object bean)
Returns the property value from a bean object.
|
void |
setValue(Object bean,
Object value)
Sets the property value on a bean object.
|
getConstructorArgumentIndex, isConstructorArgument, setConstructorArgumentIndexclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetConstructorArgumentIndex, isConstructorArgumentpublic Object getValue(Object bean)
PropertyAccessorgetValue in interface PropertyAccessorbean - the bean object to get the property frompublic void setValue(Object bean, Object value)
PropertyAccessorsetValue in interface PropertyAccessorbean - the bean object to set the propertyvalue - the property value