OSGi™ Service Platform
Release 4

Interface BundleListener

All Superinterfaces:
All Known Subinterfaces:

public interface BundleListener
extends java.util.EventListener

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

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

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

See Also:

Method Summary
 void bundleChanged(BundleEvent event)
          Receives notification that a bundle has had a lifecycle change.

Method Detail


public void bundleChanged(BundleEvent event)
Receives notification that a bundle has had a lifecycle change.

event - The BundleEvent.

OSGi™ Service Platform
Release 4

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