org.apache.felix.eventadmin.bridge.configuration
Class Activator

java.lang.Object
  extended by org.apache.felix.eventadmin.bridge.configuration.Activator
All Implemented Interfaces:
BundleActivator

public class Activator
extends Object
implements BundleActivator

The BundleActivator that will register an ConfigurationEventListener service with the framework on start. Subsequently, ConfigurationEvents will be bridged to available EventAdmin services (as per spec).

Author:
Felix Project Team

Constructor Summary
Activator()
           
 
Method Summary
 void start(BundleContext context)
          This registers an ConfigurationEventListener service with the framework that bridges ConfigurationEvents to the EventAdmin.
 void stop(BundleContext context)
          Stop the bridging of ConfigurationEvents to the EventAdmin.
 
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
This registers an ConfigurationEventListener service with the framework that bridges ConfigurationEvents to the EventAdmin.

Specified by:
start in interface BundleActivator
Parameters:
context - The context to use
Throws:
Exception - If this method throws an exception, this bundle is marked as stopped and the Framework will remove this bundle's listeners, unregister all services registered by this bundle, and release all services used by this bundle.
See Also:
BundleActivator.start(org.osgi.framework.BundleContext)

stop

public void stop(BundleContext context)
          throws Exception
Stop the bridging of ConfigurationEvents to the EventAdmin.

Specified by:
stop in interface BundleActivator
Parameters:
context - The execution context of the bundle being stopped.
Throws:
Exception - If this method throws an exception, the bundle is still marked as stopped, and the Framework will remove the bundle's listeners, unregister all services registered by the bundle, and release all services used by the bundle.
See Also:
BundleActivator.stop(org.osgi.framework.BundleContext)


Copyright © 2011 Apache Software Foundation. All Rights Reserved.