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, setConstructorArgumentIndex
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getConstructorArgumentIndex, isConstructorArgument
public Object getValue(Object bean)
PropertyAccessor
getValue
in interface PropertyAccessor
bean
- the bean object to get the property frompublic void setValue(Object bean, Object value)
PropertyAccessor
setValue
in interface PropertyAccessor
bean
- the bean object to set the propertyvalue
- the property value