org.apache.felix.eventadmin.impl
Class Activator
java.lang.Object
org.apache.felix.eventadmin.impl.Activator
- All Implemented Interfaces:
- BundleActivator
public class Activator
- extends Object
- implements BundleActivator
The activator of the EventAdmin bundle. This class registers an implementation of
the OSGi R4 EventAdmin service (see the Compendium 113) with the
framework. It features timeout-based blacklisting of event-handlers for both,
asynchronous and synchronous event-dispatching (as a spec conform optional
extension).
- Author:
- Felix Project Team
- See Also:
For configuration features of the event admin.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Activator
public Activator()
start
public void start(BundleContext context)
- Called upon starting of the bundle. Constructs and registers the EventAdmin
service with the framework. Note that the properties of the service are
requested from the context in this method hence, the bundle has to be
restarted in order to take changed properties into account.
- Specified by:
start
in interface BundleActivator
- Parameters:
context
- The bundle context passed by the framework- See Also:
BundleActivator.start(org.osgi.framework.BundleContext)
stop
public void stop(BundleContext context)
- Called upon stopping the bundle. This will block until all pending events are
delivered. An IllegalStateException will be thrown on new events starting with
the begin of this method. However, it might take some time until we settle
down which is somewhat cumbersome given that the spec asks for return in
a timely manner.
- Specified by:
stop
in interface BundleActivator
- Parameters:
context
- The bundle context passed by the framework- See Also:
BundleActivator.stop(org.osgi.framework.BundleContext)
Copyright © 2013 The Apache Software Foundation. All Rights Reserved.