Class CalendarSystemFactory

java.lang.Object
com.webmethods.sc.calendar.CalendarSystemFactory

public class CalendarSystemFactory extends Object
Singleton static class which is used to create ICalendarSystem
  • Constructor Details

    • CalendarSystemFactory

      public CalendarSystemFactory()
      Public only so it can be constructed as OSGi DS
  • Method Details

    • bindCalendarSystem

      protected void bindCalendarSystem(ICalendarSystem service)
      Reference injection of the other OSGi service
    • unbindCalendarSystem

      protected void unbindCalendarSystem(ICalendarSystem service)
    • activate

      protected void activate(Map<String,Object> config)
      Activation of OSGi declaritive service.
      Parameters:
      config - the configuration properties of the OSGi service
    • deactivate

      protected void deactivate()
      Deactivation of OSGi declaritive service.
    • getCalendarSystem

      public static ICalendarSystem getCalendarSystem(Transport transport) throws CalendarException
      Returns singleton instance of ICalendarSystem interface to shared calendar component
      Returns:
      Throws:
      CalendarException
    • getCalendarSystem

      public static ICalendarSystem getCalendarSystem() throws CalendarException
      Returns singleton instance of ICalendarSystem interface to shared calendar component. This will chose the best transport for the current context.
      Returns:
      Throws:
      CalendarException