Class NoOpPopulator<SOURCE,​TARGET>

  • Type Parameters:
    SOURCE - Populator Source type
    TARGET - Populator Target type
    All Implemented Interfaces:
    Populator<SOURCE,​TARGET>

    public class NoOpPopulator<SOURCE,​TARGET>
    extends java.lang.Object
    implements Populator<SOURCE,​TARGET>
    No operations populator - can be injected into the list of populators for a converter that requires no populators at the time of definition, i.e. when the list of populators will be empty by design and will be extended with real populators in the upstream, overridden converter definition. The NoOpPopulator is required, in order to avoid runtime warnings of the type “Empty populators list found for converter”, that is issued by the AbstractPopulatingConverter validation.
    • Constructor Summary

      Constructors 
      Constructor Description
      NoOpPopulator()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void populate​(SOURCE source, TARGET target)
      Populate the target instance with values from the source instance.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait