Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.plugin.addrbook
Class AddrBookActivator

java.lang.Object
  extended by net.java.sip.communicator.plugin.addrbook.AddrBookActivator
All Implemented Interfaces:
org.osgi.framework.BundleActivator

public class AddrBookActivator
extends Object
implements org.osgi.framework.BundleActivator

Implements BundleActivator for the addrbook plug-in which provides support for OS-specific Address Book.

Author:
Lyubomir Marinov

Field Summary
static String PNAME_ENABLE_MACOSX_ADDRESS_BOOK_SEARCH
          Boolean property that defines whether the integration of the OS X address book is enabled.
static String PNAME_ENABLE_MICROSOFT_OUTLOOK_SEARCH
          Boolean property that defines whether the integration of the Outlook address book is enabled.
 
Constructor Summary
AddrBookActivator()
           
 
Method Summary
static ConfigurationService getConfigService()
          Gets the ConfigurationService to be used by the functionality of the addrbook plug-in.
static PhoneNumberI18nService getPhoneNumberI18nService()
          Gets the PhoneNumberI18nService to be used by the functionality of the addrbook plug-in.
static ResourceManagementService getResources()
          Gets the ResourceManagementService to be used by the functionality of the addrbook plug-in.
 void start(org.osgi.framework.BundleContext bundleContext)
          Starts the addrbook plug-in.
(package private) static void startService()
          Starts the address book service.
 void stop(org.osgi.framework.BundleContext bundleContext)
          Stops the addrbook plug-in.
(package private) static void stopService()
          Stop the previously registered service.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PNAME_ENABLE_MICROSOFT_OUTLOOK_SEARCH

public static final String PNAME_ENABLE_MICROSOFT_OUTLOOK_SEARCH
Boolean property that defines whether the integration of the Outlook address book is enabled.

See Also:
Constant Field Values

PNAME_ENABLE_MACOSX_ADDRESS_BOOK_SEARCH

public static final String PNAME_ENABLE_MACOSX_ADDRESS_BOOK_SEARCH
Boolean property that defines whether the integration of the OS X address book is enabled.

See Also:
Constant Field Values
Constructor Detail

AddrBookActivator

public AddrBookActivator()
Method Detail

getPhoneNumberI18nService

public static PhoneNumberI18nService getPhoneNumberI18nService()
Gets the PhoneNumberI18nService to be used by the functionality of the addrbook plug-in.

Returns:
the PhoneNumberI18nService to be used by the functionality of the addrbook plug-in

getResources

public static ResourceManagementService getResources()
Gets the ResourceManagementService to be used by the functionality of the addrbook plug-in.

Returns:
the ResourceManagementService to be used by the functionality of the addrbook plug-in

getConfigService

public static ConfigurationService getConfigService()
Gets the ConfigurationService to be used by the functionality of the addrbook plug-in.

Returns:
the ConfigurationService to be used by the functionality of the addrbook plug-in

start

public void start(org.osgi.framework.BundleContext bundleContext)
           throws Exception
Starts the addrbook plug-in.

Specified by:
start in interface org.osgi.framework.BundleActivator
Parameters:
bundleContext - the BundleContext in which the addrbook plug-in is to be started
Throws:
Exception - if anything goes wrong while starting the addrbook plug-in
See Also:
BundleActivator.start(BundleContext)

stop

public void stop(org.osgi.framework.BundleContext bundleContext)
          throws Exception
Stops the addrbook plug-in.

Specified by:
stop in interface org.osgi.framework.BundleActivator
Parameters:
bundleContext - the BundleContext in which the addrbook plug-in is to be stopped
Throws:
Exception - if anything goes wrong while stopping the addrbook plug-in
See Also:
BundleActivator.stop(BundleContext)

startService

static void startService()
Starts the address book service.


stopService

static void stopService()
Stop the previously registered service.


Jitsi: the OpenSource Java VoIP and Instant Messaging client.

Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under LGPL license.