org.eclipse.ecf.osgi.services.discovery.local
Class Activator

java.lang.Object
  extended by org.eclipse.ecf.osgi.services.discovery.local.Activator
All Implemented Interfaces:
org.osgi.framework.BundleActivator

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

The activator class controls the plug-in life cycle


Field Summary
static java.lang.String PLUGIN_ID
           
 
Constructor Summary
Activator()
          The constructor
 
Method Summary
 org.osgi.framework.BundleContext getBundleContext()
           
static Activator getDefault()
          Returns the shared instance
 void start(org.osgi.framework.BundleContext bc)
           
 void stop(org.osgi.framework.BundleContext context)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PLUGIN_ID

public static final java.lang.String PLUGIN_ID
See Also:
Constant Field Values
Constructor Detail

Activator

public Activator()
The constructor

Method Detail

start

public void start(org.osgi.framework.BundleContext bc)
           throws java.lang.Exception
Specified by:
start in interface org.osgi.framework.BundleActivator
Throws:
java.lang.Exception

stop

public void stop(org.osgi.framework.BundleContext context)
          throws java.lang.Exception
Specified by:
stop in interface org.osgi.framework.BundleActivator
Throws:
java.lang.Exception

getDefault

public static Activator getDefault()
Returns the shared instance

Returns:
the shared instance

getBundleContext

public org.osgi.framework.BundleContext getBundleContext()