Class FieldReflectionAccessor

    • Constructor Detail

      • FieldReflectionAccessor

        public FieldReflectionAccessor​(java.lang.reflect.Field field,
                                       int constructorArgumentIndex)
        Constructs a new FieldReflectionAccessor.
        Parameters:
        field - the reflected Field
        constructorArgumentIndex - the constructor argument index, or -1 if not a constructor argument
    • Method Detail

      • getValue

        public java.lang.Object getValue​(java.lang.Object bean)
        Description copied from interface: PropertyAccessor
        Returns the property value from a bean object.
        Specified by:
        getValue in interface PropertyAccessor
        Parameters:
        bean - the bean object to get the property from
        Returns:
        the property value
      • setValue

        public void setValue​(java.lang.Object bean,
                             java.lang.Object value)
        Description copied from interface: PropertyAccessor
        Sets the property value on a bean object.
        Specified by:
        setValue in interface PropertyAccessor
        Parameters:
        bean - the bean object to set the property
        value - the property value