Class ListBeanExtender

  • 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 ListBeanExtender
    extends CollectionBeanExtender
    Modification bean to change contents of a list property of specified bean from any spring contexts in hierarchy and/or sort them.
    • Constructor Detail

      • ListBeanExtender

        public ListBeanExtender​(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)
        Overrides:
        checkProperty in class CollectionBeanExtender
        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.
        Overrides:
        modifyProperty in class CollectionBeanExtender
        Parameters:
        target - value to be changed
        Returns:
        new value
      • isSort

        protected boolean isSort()
      • setSort

        public void setSort​(boolean sort)
      • getComparator

        protected java.util.Comparator<java.lang.Object> getComparator()
      • setComparator

        public void setComparator​(java.util.Comparator<java.lang.Object> comparator)
      • setDefaultComparator

        protected void setDefaultComparator()