org.osgi.framework.BundleEvent Class Reference

List of all members.


Detailed Description

An event from the Framework describing a bundle lifecycle change.

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.

Version:
Revision
1.15

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.

Constructor & Destructor Documentation

org.osgi.framework.BundleEvent.BundleEvent ( int  type,
Bundle  bundle 
)

Creates a bundle event of the specified type.

Parameters:
type The event type.
bundle The bundle which had a lifecycle change.

Definition at line 141 of file BundleEvent.java.


Member Function Documentation

Bundle org.osgi.framework.BundleEvent.getBundle (  ) 

Returns the bundle which had a lifecycle change.

This bundle is the source of the event.

Returns:
The bundle that had a change occur in its lifecycle.

Definition at line 153 of file BundleEvent.java.

int org.osgi.framework.BundleEvent.getType (  ) 

Returns the type of lifecyle event.

The type values are:

Returns:
The type of lifecycle event.

Definition at line 174 of file BundleEvent.java.

Referenced by org.knopflerfish.framework.Listeners.bundleChanged().


Member Data Documentation

final int org.osgi.framework.BundleEvent.INSTALLED = 0x00000001 [static]

The bundle has been installed.

The value of INSTALLED is 0x00000001.

See also:
BundleContext.installBundle(String)

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.

See also:
Bundle.start

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.

See also:
Bundle.stop

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.

See also:
Bundle.update()

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.

See also:
Bundle.uninstall

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.

See also:
Bundle.RESOLVED
Since:
1.3

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.

See also:
Bundle.INSTALLED
Since:
1.3

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.

See also:
Bundle.start()
Since:
1.3

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.

See also:
Bundle.stop()
Since:
1.3

Definition at line 132 of file BundleEvent.java.


The documentation for this class was generated from the following file:
Generated on Mon Jan 11 21:19:24 2010 for OpenMobileIS by  doxygen 1.5.4