Class ItemFactoryImpl

java.lang.Object
ch.tocco.nice2.model.menu.impl.xml.ItemFactoryImpl
All Implemented Interfaces:
ItemFactory

@Component public class ItemFactoryImpl extends Object implements ItemFactory
  • Constructor Details

    • ItemFactoryImpl

      public ItemFactoryImpl()
  • Method Details

    • setReaders

      @Autowired public void setReaders(List<ReaderFactory> readers)
    • create

      public ItemReaderContext create(MenuItem parentItem)
      Description copied from interface: ItemFactory
      Create a new context by passing a parent menu item. With the context you are able to create a reader for a tag name. Readers are contributed by modules.
      Specified by:
      create in interface ItemFactory
      Parameters:
      parentItem - if you create a root menu item, this can be null. otherwise not.
      Returns:
      a new item reader context for creating item readers