org.apache.felix.scr.impl
Class Activator

java.lang.Object
  extended by org.apache.felix.scr.impl.Activator
All Implemented Interfaces:
java.util.EventListener, org.osgi.framework.BundleActivator, org.osgi.framework.BundleListener, org.osgi.framework.SynchronousBundleListener

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

This activator is used to cover requirement described in section 112.8.1 @@ -27,14 37,202 @@ in active bundles.


Constructor Summary
Activator()
           
 
Method Summary
 void bundleChanged(org.osgi.framework.BundleEvent event)
          Loads and unloads any components provided by the bundle whose state changed.
 void start(org.osgi.framework.BundleContext context)
          Registers this instance as a (synchronous) bundle listener and loads the components of already registered bundles.
 void stop(org.osgi.framework.BundleContext context)
          Unregisters this instance as a bundle listener and unloads all components which have been registered during the active life time of the SCR implementation bundle.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Activator

public Activator()
Method Detail

start

public void start(org.osgi.framework.BundleContext context)
           throws java.lang.Exception
Registers this instance as a (synchronous) bundle listener and loads the components of already registered bundles.

Specified by:
start in interface org.osgi.framework.BundleActivator
Parameters:
context - The BundleContext of the SCR implementation bundle.
Throws:
java.lang.Exception

stop

public void stop(org.osgi.framework.BundleContext context)
          throws java.lang.Exception
Unregisters this instance as a bundle listener and unloads all components which have been registered during the active life time of the SCR implementation bundle.

Specified by:
stop in interface org.osgi.framework.BundleActivator
Parameters:
context - The BundleContext of the SCR implementation bundle.
Throws:
java.lang.Exception

bundleChanged

public void bundleChanged(org.osgi.framework.BundleEvent event)
Loads and unloads any components provided by the bundle whose state changed. If the bundle has been started, the components are loaded. If the bundle is about to stop, the components are unloaded.

Specified by:
bundleChanged in interface org.osgi.framework.BundleListener
Parameters:
event - The BundleEvent representing the bundle state change.