OSGi™ Service Platform
Release 4

org.osgi.framework
Interface SynchronousBundleListener

All Superinterfaces:
BundleListener, java.util.EventListener

public interface SynchronousBundleListener
extends BundleListener

A synchronous BundleEvent listener. When a BundleEvent is fired, it is synchronously delivered to a BundleListener.

SynchronousBundleListener is a listener interface that may be implemented by a bundle developer.

A SynchronousBundleListener object is registered with the Framework using the BundleContext.addBundleListener(org.osgi.framework.BundleListener) method. SynchronousBundleListener objects are called with a BundleEvent object when a bundle has been installed, resolved, starting, started, stopping, stopped, updated, unresolved, or uninstalled.

Unlike normal BundleListener objects, SynchronousBundleListeners are synchronously called during bundle lifecycle processing. The bundle lifecycle processing will not proceed until all SynchronousBundleListeners have completed. SynchronousBundleListener objects will be called prior to BundleListener objects.

AdminPermission[bundle,LISTENER] is required to add or remove a SynchronousBundleListener object.

Since:
1.1
See Also:
BundleEvent

Methods inherited from interface org.osgi.framework.BundleListener
bundleChanged
 


OSGi™ Service Platform
Release 4

Copyright © OSGi Alliance (2000, 2006). All Rights Reserved. Licensed under the OSGi Specification License, Version 1.0