org.apache.felix.scr.impl
Class Activator

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

public class Activator
extends Object
implements BundleActivator, 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(BundleEvent event)
          Loads and unloads any components provided by the bundle whose state changed.
 void start(BundleContext context)
          Registers this instance as a (synchronous) bundle listener and loads the components of already registered bundles.
 void stop(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(BundleContext context)
           throws Exception
Registers this instance as a (synchronous) bundle listener and loads the components of already registered bundles.

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

stop

public void stop(BundleContext context)
          throws 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 BundleActivator
Parameters:
context - The BundleContext of the SCR implementation bundle.
Throws:
Exception

bundleChanged

public void bundleChanged(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 BundleListener
Parameters:
event - The BundleEvent representing the bundle state change.


Copyright © 2006-2011 Apache Software Foundation. All Rights Reserved.