Class Accessor.GetterOnlyReflection<BeanT,​ValueT>

    • Constructor Detail

      • GetterOnlyReflection

        public GetterOnlyReflection​(Method getter)
    • Method Detail

      • set

        public void set​(BeanT bean,
                        ValueT value)
                 throws AccessorException
        Description copied from class: Accessor
        Sets the value of the property of the given bean object.
        Overrides:
        set in class Accessor.GetterSetterReflection<BeanT,​ValueT>
        Parameters:
        bean - must not be null.
        value - the value to be set. Setting value to null means resetting to the VM default value (even for primitive properties.)
        Throws:
        AccessorException - if failed to set a value. For example, the setter method may throw an exception.