Class ChannelFactory


  • public class ChannelFactory
    extends java.lang.Object
    Factory for creating channels
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static java.util.logging.Logger LOGGER  
    • Constructor Summary

      Constructors 
      Constructor Description
      ChannelFactory()  
    • Method Summary

      Modifier and Type Method Description
      ChannelBase makeChannel​(ParserResultElement input)
      Creates channel based on channel type (Fruit, Vegetable, Meat, Other).
      private ChannelBase makeChannelFromChannelType​(ProductType typeOfChannel)
      Creates channel based on channel type (Fruit, Vegetable, Meat, Other).
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • LOGGER

        private static final java.util.logging.Logger LOGGER
    • Constructor Detail

      • ChannelFactory

        public ChannelFactory()
    • Method Detail

      • makeChannel

        public ChannelBase makeChannel​(ParserResultElement input)
        Creates channel based on channel type (Fruit, Vegetable, Meat, Other).
        Parameters:
        input - data from channel that is created
        Returns:
        created Channel (FruitChannel, VegetableChannel, MeatChannel, OtherChannel)
      • makeChannelFromChannelType

        private ChannelBase makeChannelFromChannelType​(ProductType typeOfChannel)
        Creates channel based on channel type (Fruit, Vegetable, Meat, Other).
        Parameters:
        typeOfChannel - channel type to be created
        Returns:
        created Channel (FruitChannel, VegetableChannel, MeatChannel, OtherChannel)