|
OSGi™ Service Platform Release 4 Version 4.1 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.EventObject
org.osgi.framework.BundleEvent
An event from the Framework describing a bundle lifecycle change.
BundleEvent objects are delivered to
SynchronousBundleListeners and BundleListeners
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.
BundleListener,
SynchronousBundleListener,
Serialized Form| Field Summary | |
static int |
INSTALLED
The bundle has been installed. |
static int |
LAZY_ACTIVATION
The bundle will be lazily activated. |
static int |
RESOLVED
The bundle has been resolved. |
static int |
STARTED
The bundle has been started. |
static int |
STARTING
The bundle is about to be activated. |
static int |
STOPPED
The bundle has been stopped. |
static int |
STOPPING
The bundle is about to deactivated. |
static int |
UNINSTALLED
The bundle has been uninstalled. |
static int |
UNRESOLVED
The bundle has been unresolved. |
static int |
UPDATED
The bundle has been updated. |
| Fields inherited from class java.util.EventObject |
source |
| Constructor Summary | |
BundleEvent(int type,
Bundle bundle)
Creates a bundle event of the specified type. |
|
| Method Summary | |
Bundle |
getBundle()
Returns the bundle which had a lifecycle change. |
int |
getType()
Returns the type of lifecyle event. |
| Methods inherited from class java.util.EventObject |
getSource, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final int INSTALLED
The value of INSTALLED is 0x00000001.
BundleContext.installBundle(String),
Constant Field Valuespublic static final int STARTED
The bundle's
BundleActivator start method
has been executed if the bundle has a bundle activator class.
The value of STARTED is 0x00000002.
Bundle.start(),
Constant Field Valuespublic static final int STOPPED
The bundle's
BundleActivator stop method
has been executed if the bundle has a bundle activator class.
The value of STOPPED is 0x00000004.
Bundle.stop(),
Constant Field Valuespublic static final int UPDATED
The value of UPDATED is 0x00000008.
Bundle.update(),
Constant Field Valuespublic static final int UNINSTALLED
The value of UNINSTALLED is 0x00000010.
Bundle.uninstall(),
Constant Field Valuespublic static final int RESOLVED
The value of RESOLVED is 0x00000020.
Bundle.RESOLVED,
Constant Field Valuespublic static final int UNRESOLVED
The value of UNRESOLVED is 0x00000040.
Bundle.INSTALLED,
Constant Field Valuespublic static final int STARTING
The bundle's
BundleActivator start method
is about to be called if the bundle has a bundle activator class. This
event is only delivered to SynchronousBundleListeners. It is not
delivered to BundleListeners.
The value of STARTING is 0x00000080.
Bundle.start(),
Constant Field Valuespublic static final int STOPPING
The bundle's
BundleActivator stop method
is about to be called if the bundle has a bundle activator class. This
event is only delivered to SynchronousBundleListeners. It is not
delivered to BundleListeners.
The value of STOPPING is 0x00000100.
Bundle.stop(),
Constant Field Valuespublic static final int LAZY_ACTIVATION
The bundle has a lazy activation policy
and is waiting to be activated. It is now in the
STARTING state and has a valid
BundleContext. This event is only delivered to
SynchronousBundleListeners. It is not delivered to
BundleListeners.
The value of LAZY_ACTIVATION is 0x00000200.
| Constructor Detail |
public BundleEvent(int type,
Bundle bundle)
type - The event type.bundle - The bundle which had a lifecycle change.| Method Detail |
public Bundle getBundle()
public int getType()
|
OSGi™ Service Platform Release 4 Version 4.1 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||