public class BundleEvent extends java.util.EventObject
java.lang.Object
|
+--java.util.EventObject
|
+--org.osgi.framework.BundleEvent
java.io.Serializable
Bundle life cycle change event. BundleEvents are delivered to BundleListener s when a change occurs in the bundle's life cycle. A type code is used to identify the event for future extendability.
OSGi reserves the right to extend the set of types in the future.
Member Summary | |
---|---|
Fields | |
public static final | INSTALLED |
A bundle has been installed. | |
public static final | STARTED |
A bundle has been started. | |
public static final | STOPPED |
A bundle has been stopped. | |
public static final | UNINSTALLED |
A bundle has been uninstalled. | |
public static final | UPDATED |
A bundle has been updated. | |
Constructors | |
public | BundleEvent(int, Bundle) |
Construct a bundle event. | |
Methods | |
public Bundle | getBundle() |
Retrieve the bundle who had a change occur in its life cycle. | |
public int | getType() |
Retrieve the type of this event. |
public static final int INSTALLED
A bundle has been installed.
The value of INSTALLED is 0x00000001.
See Also: BundleContext.installBundle(String)
public static final int STARTED
A bundle has been started.
The value of STARTED is 0x00000002.
See Also: Bundle.start()
public static final int STOPPED
A bundle has been stopped.
The value of STOPPED is 0x00000004.
See Also: Bundle.stop()
public static final int UNINSTALLED
A bundle has been uninstalled.
The value of UNINSTALLED is 0x00000010.
See Also: Bundle.uninstall()
public static final int UPDATED
A bundle has been updated.
The value of UPDATED is 0x00000008.
See Also: Bundle.update()
public BundleEvent(int type, Bundle bundle)
Construct a bundle event.
Parameters:
bundle— The bundle who had a change occur in its life cycle.
public Bundle getBundle()
Retrieve the bundle who had a change occur in its life cycle. This bundle is the source of the event.
Returns: The bundle who had a change occur in its life cycle.
public int getType()
Retrieve the type of this event. The type values are INSTALLED, STARTED, STOPPED, UPDATED, UNINSTALLED.
13.58.120.57