public class ThunderbirdActivator
extends java.lang.Object
implements org.osgi.framework.BundleActivator
Constructor and Description |
---|
ThunderbirdActivator() |
Modifier and Type | Method and Description |
---|---|
(package private) static void |
add(java.lang.String config)
Loads and registers an address book service.
|
(package private) static java.util.List<ThunderbirdContactSourceService> |
getActiveServices()
Gets all registered Thunderbird address book services.
|
(package private) static org.jitsi.service.configuration.ConfigurationService |
getConfigService()
Gets the configuration service.
|
static PhoneNumberI18nService |
getPhoneNumberI18nService()
Returns the PhoneNumberI18nService.
|
(package private) static org.jitsi.service.resources.ResourceManagementService |
getResources()
Gets the resource service.
|
(package private) static void |
remove(ThunderbirdContactSourceService service)
Stops an address book service and deletes the corresponding configuration
data.
|
void |
start(org.osgi.framework.BundleContext bundleContext)
Searches the configuration for Thunderbird address books and registers a
ContactSourceService for each found config. |
void |
stop(org.osgi.framework.BundleContext bundleContext)
Unregisters all
ContactSourceService s that were registered by
this activator. |
static org.jitsi.service.configuration.ConfigurationService getConfigService()
static org.jitsi.service.resources.ResourceManagementService getResources()
static java.util.List<ThunderbirdContactSourceService> getActiveServices()
static void add(java.lang.String config)
config
- the name of the base property of the service to load.static void remove(ThunderbirdContactSourceService service)
service
- the address book instance to remove.public void start(org.osgi.framework.BundleContext bundleContext) throws java.lang.Exception
ContactSourceService
for each found config.start
in interface org.osgi.framework.BundleActivator
java.lang.Exception
public void stop(org.osgi.framework.BundleContext bundleContext) throws java.lang.Exception
ContactSourceService
s that were registered by
this activator.stop
in interface org.osgi.framework.BundleActivator
java.lang.Exception
public static PhoneNumberI18nService getPhoneNumberI18nService()
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.