Class DefaultItemTypePopulatorProvider

  • All Implemented Interfaces:
    ItemTypePopulatorProvider

    public class DefaultItemTypePopulatorProvider
    extends java.lang.Object
    implements ItemTypePopulatorProvider
    Default implementation for ItemTypePopulatorProvider. This class defines a Map that is used to lookup for a Populator given a typeCode. If no populator was found for the type code, then it looks for the populator for its super class.
    • Constructor Detail

      • DefaultItemTypePopulatorProvider

        public DefaultItemTypePopulatorProvider()
    • Method Detail

      • getItemTypePopulator

        public java.util.Optional<Populator<java.util.Map<java.lang.String,​java.lang.Object>,​ItemModel>> getItemTypePopulator​(java.lang.String typeCode)
        Description copied from interface: ItemTypePopulatorProvider
        Interface method to optionally return a Populator given the typeCode.
        Specified by:
        getItemTypePopulator in interface ItemTypePopulatorProvider
        Parameters:
        typeCode - the ItemModel type code
        Returns:
        the Populator registered for the typeCode.
      • getPopulatorsMap

        protected java.util.Map<java.lang.String,​Populator<java.util.Map<java.lang.String,​java.lang.Object>,​ItemModel>> getPopulatorsMap()
      • setPopulatorsMap

        public void setPopulatorsMap​(java.util.Map<java.lang.String,​Populator<java.util.Map<java.lang.String,​java.lang.Object>,​ItemModel>> populatorsMap)
      • getTypeService

        protected TypeService getTypeService()
      • setTypeService

        public void setTypeService​(TypeService typeService)