Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.impl.netaddr
Class NetaddrActivator

java.lang.Object
  extended by net.java.sip.communicator.impl.netaddr.NetaddrActivator
All Implemented Interfaces:
org.osgi.framework.BundleActivator

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

The activator manage the the bundles between OSGi framework and the Network address manager

Author:
Emil Ivov

Constructor Summary
NetaddrActivator()
           
 
Method Summary
(package private) static org.osgi.framework.BundleContext getBundleContext()
          Returns a reference to the bundle context that we were started with.
static ConfigurationService getConfigurationService()
          Returns a reference to a ConfigurationService implementation currently registered in the bundle context or null if no such implementation was found.
static PacketLoggingService getPacketLogging()
          Returns a reference to the PacketLoggingService implementation currently registered in the bundle context or null if no such implementation was found.
 void start(org.osgi.framework.BundleContext bundleContext)
          Creates a NetworkAddressManager, starts it, and registers it as a NetworkAddressManagerService.
 void stop(org.osgi.framework.BundleContext bundleContext)
          Stops the Network Address Manager bundle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NetaddrActivator

public NetaddrActivator()
Method Detail

start

public void start(org.osgi.framework.BundleContext bundleContext)
           throws Exception
Creates a NetworkAddressManager, starts it, and registers it as a NetworkAddressManagerService.

Specified by:
start in interface org.osgi.framework.BundleActivator
Parameters:
bundleContext - OSGI bundle context
Throws:
Exception - if starting the NetworkAddressManagerFails.

getConfigurationService

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

Returns:
a currently valid implementation of the ConfigurationService.

getPacketLogging

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

Returns:
a reference to a PacketLoggingService implementation currently registered in the bundle context or null if no such implementation was found.

stop

public void stop(org.osgi.framework.BundleContext bundleContext)
Stops the Network Address Manager bundle

Specified by:
stop in interface org.osgi.framework.BundleActivator
Parameters:
bundleContext - the OSGI bundle context

getBundleContext

static org.osgi.framework.BundleContext getBundleContext()
Returns a reference to the bundle context that we were started with.

Returns:
a reference to the BundleContext instance that we were started with.

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

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