public class CalendarSystemFactory extends Object
ICalendarSystem
Constructor and Description |
---|
CalendarSystemFactory()
Public only so it can be constructed as OSGi DS
|
Modifier and Type | Method and Description |
---|---|
protected void |
activate(Map<String,Object> config)
Activation of OSGi declaritive service.
|
protected void |
bindCalendarSystem(ICalendarSystem service)
Reference injection of the other OSGi service
|
protected void |
deactivate()
Deactivation of OSGi declaritive service.
|
static ICalendarSystem |
getCalendarSystem()
Returns singleton instance of
ICalendarSystem interface to shared
calendar component. |
static ICalendarSystem |
getCalendarSystem(Transport transport)
Returns singleton instance of
ICalendarSystem interface to shared
calendar component |
protected void |
unbindCalendarSystem(ICalendarSystem service) |
public CalendarSystemFactory()
protected void bindCalendarSystem(ICalendarSystem service)
protected void unbindCalendarSystem(ICalendarSystem service)
protected void activate(Map<String,Object> config)
config
- the configuration properties of the OSGi serviceprotected void deactivate()
public static ICalendarSystem getCalendarSystem(Transport transport) throws CalendarException
ICalendarSystem
interface to shared
calendar componentCalendarException
public static ICalendarSystem getCalendarSystem() throws CalendarException
ICalendarSystem
interface to shared
calendar component. This will chose the best transport for the current context.CalendarException