Class MethodReflectionAccessor

    • Constructor Detail

      • MethodReflectionAccessor

        public MethodReflectionAccessor​(java.beans.PropertyDescriptor descriptor,
                                        int constructorArgumentIndex)
        Constructs a new ReflectionAccessor.
        Parameters:
        descriptor - the PropertyDescriptor describing the bean property
        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