Class clientFactory

java.lang.Object
com.se21.calbot.factories.clientFactory

@Component public class clientFactory extends Object
Factory class to generate object for type of client used by user(eg: discord, telegram etc). This class is one of responsible to help achieve factory pattern in project.
  • Field Details

    • discordcleint

      @Autowired Discord discordcleint
  • Constructor Details

    • clientFactory

      public clientFactory()
  • Method Details

    • getClient

      public ClientManager getClient(String channel)
      Provides object of ClientManager used by current user
      Parameters:
      channel - requested GUI client type
      Returns:
      specific client type object will be typecast with ClientManager interface class (like Discord obj will be typecast to ClientManager object)