Class PropertyBeanExtender

  • All Implemented Interfaces:
    org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanFactoryAware, org.springframework.beans.factory.BeanNameAware, org.springframework.beans.factory.config.BeanPostProcessor

    public class PropertyBeanExtender
    extends AbstractBeanExtender
    Modification bean to set new value of a property of specified bean from any spring contexts in hierarchy
    • Constructor Detail

      • PropertyBeanExtender

        public PropertyBeanExtender​(java.lang.String extendedBeanName)
    • Method Detail

      • checkProperty

        protected void checkProperty​(java.lang.Object target)
        Description copied from class: AbstractBeanExtender
        Method should check if value of property to be modified is proper (i.e. if bean is to modify a list, then it should check if provided value is of type List)
        Specified by:
        checkProperty in class AbstractBeanExtender
        Parameters:
        target - value that will be modified
      • modifyProperty

        protected java.lang.Object modifyProperty​(java.lang.Object target)
        Description copied from class: AbstractBeanExtender
        Changes a provided value according to current modification bean configuration.
        Specified by:
        modifyProperty in class AbstractBeanExtender
        Parameters:
        target - value to be changed
        Returns:
        new value
      • getValue

        protected java.lang.Object getValue()
      • setValue

        public void setValue​(java.lang.Object value)