Class CalendarFactory

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

@Component public class CalendarFactory extends Object
Factory class to generate object for type of calendar used by user. This class is one of responsible to help achieve factory pattern in project.
  • Field Details

  • Constructor Details

    • CalendarFactory

      public CalendarFactory()
  • Method Details

    • getCalendar

      public Calendar getCalendar(String channel)
      Provides object of calendar used by current user
      Parameters:
      channel - requested calendar type
      Returns:
      specific calendar type object will be typecast with Calendar interface class (like GoogleCalendarService obj will be typecast to Calendar object)