Class DefaultPopulatorList<SOURCE,​TARGET>

  • All Implemented Interfaces:
    Populator<SOURCE,​TARGET>, PopulatorList<SOURCE,​TARGET>, org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanNameAware

    public class DefaultPopulatorList<SOURCE,​TARGET>
    extends java.lang.Object
    implements Populator<SOURCE,​TARGET>, PopulatorList<SOURCE,​TARGET>, org.springframework.beans.factory.BeanNameAware
    Populator that uses a list of configured populators to populate the target.
    • Constructor Detail

      • DefaultPopulatorList

        public DefaultPopulatorList()
    • Method Detail

      • populate

        public void populate​(SOURCE source,
                             TARGET target)
        Populate the target instance from the source instance. Calls a list of injected populators to populate the instance.
        Specified by:
        populate in interface Populator<SOURCE,​TARGET>
        Parameters:
        source - the source item
        target - the target item to populate
      • removePopulatorsDuplicates

        @PostConstruct
        public void removePopulatorsDuplicates()
      • setBeanName

        public void setBeanName​(java.lang.String name)
        Specified by:
        setBeanName in interface org.springframework.beans.factory.BeanNameAware
      • getMyBeanName

        public java.lang.String getMyBeanName()