BundleEvent
objects are delivered to BundleListener
objects when a change occurs in a bundle's lifecycle. A type code is used to identify the event type for future extendability.
OSGi Alliance reserves the right to extend the set of types.
Definition at line 37 of file BundleEvent.java.
Public Member Functions | |
BundleEvent (int type, Bundle bundle) | |
Creates a bundle event of the specified type. | |
Bundle | getBundle () |
Returns the bundle which had a lifecycle change. | |
int | getType () |
Returns the type of lifecyle event. | |
Static Public Attributes | |
static final int | INSTALLED = 0x00000001 |
The bundle has been installed. | |
static final int | STARTED = 0x00000002 |
The bundle has been started. | |
static final int | STOPPED = 0x00000004 |
The bundle has been stopped. | |
static final int | UPDATED = 0x00000008 |
The bundle has been updated. | |
static final int | UNINSTALLED = 0x00000010 |
The bundle has been uninstalled. | |
static final int | RESOLVED = 0x00000020 |
The bundle has been resolved. | |
static final int | UNRESOLVED = 0x00000040 |
The bundle has been unresolved. | |
static final int | STARTING = 0x00000080 |
The bundle is about to start. | |
static final int | STOPPING = 0x00000100 |
The bundle is about to stop. |
org.osgi.framework.BundleEvent.BundleEvent | ( | int | type, | |
Bundle | bundle | |||
) |
Creates a bundle event of the specified type.
type | The event type. | |
bundle | The bundle which had a lifecycle change. |
Definition at line 141 of file BundleEvent.java.
Bundle org.osgi.framework.BundleEvent.getBundle | ( | ) |
Returns the bundle which had a lifecycle change.
This bundle is the source of the event.
Definition at line 153 of file BundleEvent.java.
int org.osgi.framework.BundleEvent.getType | ( | ) |
Returns the type of lifecyle event.
The type values are:
Definition at line 174 of file BundleEvent.java.
Referenced by org.knopflerfish.framework.Listeners.bundleChanged().
final int org.osgi.framework.BundleEvent.INSTALLED = 0x00000001 [static] |
The bundle has been installed.
The value of INSTALLED
is 0x00000001.
Definition at line 56 of file BundleEvent.java.
final int org.osgi.framework.BundleEvent.STARTED = 0x00000002 [static] |
The bundle has been started.
The value of STARTED
is 0x00000002.
Definition at line 65 of file BundleEvent.java.
final int org.osgi.framework.BundleEvent.STOPPED = 0x00000004 [static] |
The bundle has been stopped.
The value of STOPPED
is 0x00000004.
Definition at line 74 of file BundleEvent.java.
final int org.osgi.framework.BundleEvent.UPDATED = 0x00000008 [static] |
The bundle has been updated.
The value of UPDATED
is 0x00000008.
Definition at line 83 of file BundleEvent.java.
final int org.osgi.framework.BundleEvent.UNINSTALLED = 0x00000010 [static] |
The bundle has been uninstalled.
The value of UNINSTALLED
is 0x00000010.
Definition at line 92 of file BundleEvent.java.
final int org.osgi.framework.BundleEvent.RESOLVED = 0x00000020 [static] |
The bundle has been resolved.
The value of RESOLVED
is 0x00000020.
Definition at line 102 of file BundleEvent.java.
final int org.osgi.framework.BundleEvent.UNRESOLVED = 0x00000040 [static] |
The bundle has been unresolved.
The value of UNRESOLVED
is 0x00000040.
Definition at line 112 of file BundleEvent.java.
final int org.osgi.framework.BundleEvent.STARTING = 0x00000080 [static] |
The bundle is about to start.
The value of STARTING
is 0x00000080.
Definition at line 122 of file BundleEvent.java.
final int org.osgi.framework.BundleEvent.STOPPING = 0x00000100 [static] |
The bundle is about to stop.
The value of STOPPING
is 0x00000100.
Definition at line 132 of file BundleEvent.java.