Package com.se21.calbot.factories
Class CalendarFactory
java.lang.Object
com.se21.calbot.factories.CalendarFactory
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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetCalendar(String channel)
Provides object of calendar used by current user
-
Field Details
-
googleCalendarService
-
-
Constructor Details
-
CalendarFactory
public CalendarFactory()
-
-
Method Details
-
getCalendar
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)
-