Class ChannelFactory
- java.lang.Object
-
- cz.cvut.fel.sit.omo.foodchain.factory.ChannelFactory
-
public class ChannelFactory extends java.lang.ObjectFactory for creating channels
-
-
Field Summary
Fields Modifier and Type Field Description private static java.util.logging.LoggerLOGGER
-
Constructor Summary
Constructors Constructor Description ChannelFactory()
-
Method Summary
Modifier and Type Method Description ChannelBasemakeChannel(ParserResultElement input)Creates channel based on channel type (Fruit, Vegetable, Meat, Other).private ChannelBasemakeChannelFromChannelType(ProductType typeOfChannel)Creates channel based on channel type (Fruit, Vegetable, Meat, Other).
-
-
-
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)
-
-