Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.plugin.ldap
Class LdapActivator

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

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

Implements BundleActivator for the LDAP plug-in which provides support for LDAP contact sources.

Author:
Sebastien Vincent

Constructor Summary
LdapActivator()
           
 
Method Summary
static LdapService getLdapService()
          Get LDAP service.
static ResourceManagementService getResourceManagementService()
          Returns a reference to a ResourceManagementService implementation currently registered in the bundle context or null if no such implementation was found.
 void start(org.osgi.framework.BundleContext bundleContext)
          Starts the LDAP plug-in.
 void stop(org.osgi.framework.BundleContext bundleContext)
          Stops the LDAP plug-in.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LdapActivator

public LdapActivator()
Method Detail

start

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

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

getLdapService

public static LdapService getLdapService()
Get LDAP service.

Returns:
LDAP service

stop

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

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

getResourceManagementService

public static ResourceManagementService getResourceManagementService()
Returns a reference to a ResourceManagementService implementation currently registered in the bundle context or null if no such implementation was found.

Returns:
a currently valid implementation of the ResourceManagementService.

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

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