|
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.Object java.util.EventObject org.osgi.framework.FrameworkEvent
A general event from the Framework.
FrameworkEvent
objects are delivered to
FrameworkListener
s when a general event occurs within the
OSGi environment. A type code is used to identify the event type for future
extendability.
OSGi Alliance reserves the right to extend the set of event types.
FrameworkListener
,
Serialized FormField Summary | |
static int |
ERROR
An error has occurred. |
static int |
INFO
An informational event has occurred. |
static int |
PACKAGES_REFRESHED
A PackageAdmin.refreshPackage operation has completed. |
static int |
STARTED
The Framework has started. |
static int |
STARTLEVEL_CHANGED
A StartLevel.setStartLevel operation has completed. |
static int |
WARNING
A warning has occurred. |
Fields inherited from class java.util.EventObject |
source |
Constructor Summary | |
FrameworkEvent(int type,
Bundle bundle,
java.lang.Throwable throwable)
Creates a Framework event regarding the specified bundle. |
|
FrameworkEvent(int type,
java.lang.Object source)
Deprecated. As of 1.2. This constructor is deprecated in favor of using the other constructor with the System Bundle as the event source. |
Method Summary | |
Bundle |
getBundle()
Returns the bundle associated with the event. |
java.lang.Throwable |
getThrowable()
Returns the exception related to this event. |
int |
getType()
Returns the type of framework 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 STARTED
This event is fired when the Framework has started after all installed bundles that are marked to be started have been started and the Framework has reached the intitial start level.
The value of STARTED
is 0x00000001.
StartLevel
",
Constant Field Valuespublic static final int ERROR
There was an error associated with a bundle.
The value of ERROR
is 0x00000002.
public static final int PACKAGES_REFRESHED
This event is fired when the Framework has completed the refresh packages operation initiated by a call to the PackageAdmin.refreshPackages method.
The value of PACKAGES_REFRESHED
is 0x00000004.
PackageAdmin.refreshPackages
",
Constant Field Valuespublic static final int STARTLEVEL_CHANGED
This event is fired when the Framework has completed changing the active start level initiated by a call to the StartLevel.setStartLevel method.
The value of STARTLEVEL_CHANGED
is 0x00000008.
StartLevel
",
Constant Field Valuespublic static final int WARNING
There was a warning associated with a bundle.
The value of WARNING
is 0x00000010.
public static final int INFO
There was an informational event associated with a bundle.
The value of INFO
is 0x00000020.
Constructor Detail |
public FrameworkEvent(int type, java.lang.Object source)
type
- The event type.source
- The event source object. This may not be null
.public FrameworkEvent(int type, Bundle bundle, java.lang.Throwable throwable)
type
- The event type.bundle
- The event source.throwable
- The related exception. This argument may be
null
if there is no related exception.Method Detail |
public java.lang.Throwable getThrowable()
null
if none.public Bundle getBundle()
public int getType()
The type values are:
|
OSGi™ Service Platform Release 4 Version 4.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |