no.ubicollab.osgi
Class Activator

java.lang.Object
  extended by no.ubicollab.osgi.Activator
All Implemented Interfaces:
org.osgi.framework.BundleActivator

public class Activator
extends java.lang.Object
implements org.osgi.framework.BundleActivator

The Activator class is responsible for starting and stopping the Service Discovery Manager. The class contains the Activator#start and Activator#stop members, which are invoked by the OSGi framwork to start and stop the bundle and its service.

Since:
0.1
Version:
0.2
Author:
Kim-Steve Johansen

Constructor Summary
Activator()
           
 
Method Summary
 void start(org.osgi.framework.BundleContext bc)
          The start memeber is called by the framework to start the bundle.
 void stop(org.osgi.framework.BundleContext bc)
          The stop memeber is called by the framework to stop the bundle.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Activator

public Activator()
Method Detail

start

public void start(org.osgi.framework.BundleContext bc)
           throws org.osgi.framework.BundleException
The start memeber is called by the framework to start the bundle. This member instanciates the discovery manager service and registeres it along with its properties with the framework.

Specified by:
start in interface org.osgi.framework.BundleActivator
Parameters:
bc - The refrence to the BundleContext as provided by the framwork.
Throws:
org.osgi.framework.BundleException
See Also:
BundleActivator.start(org.osgi.framework.BundleContext)

stop

public void stop(org.osgi.framework.BundleContext bc)
          throws org.osgi.framework.BundleException
The stop memeber is called by the framework to stop the bundle. This member nullifies the discovery manager instance and stops the HouseKeeperThread

Specified by:
stop in interface org.osgi.framework.BundleActivator
Parameters:
bc - The refrence to the BundleContext as provided by the framwork.
Throws:
org.osgi.framework.BundleException
See Also:
BundleActivator.stop(org.osgi.framework.BundleContext)