Events

Framework events

This is a list of events that are triggered when a framework state changes.

FrameworkEvent.types Event Service topic Description

STARTED

ct/­framework/­FrameworkEvent/­STARTED

Fired after the framework and all preinstalled bundles are started.

ERROR

ct/­framework/­FrameworkEvent/­ERROR

Fired when an error occurs within the framework.

STARTLEVEL_CHANGED

ct/­framework/­FrameworkEvent/­STARTLEVEL_CHANGED

Fired during startup of the framework.

WARNING

ct/­framework/­FrameworkEvent/­WARNING

Fired if the framework considers a state as warning and not as error. One situation where it is fired is if a bundle has defined an optional dependency to another bundle and this bundle is not installed.

STOPPED

ct/­framework/­FrameworkEvent/­STOPPED

Fired when the framework is stopped

Bundle events

This is a list of events that are triggered when a bundle state changes.

BundleEvent.types Event Service topic Description

INSTALLED

ct/­framework/­BundleEvent/­INSTALLED

Fired when a bundle is installed.

STARTED

ct/­framework/­BundleEvent/­STARTED

Fired when a bundle is started.

STOPPED

ct/­framework/­BundleEvent/­STOPPED

Fired when a bundle is stopped.

UNINSTALLED

ct/­framework/­BundleEvent/­UNINSTALLED

Fired when a bundle is uninstalled.

RESOLVING

ct/­framework/­BundleEvent/­RESOLVING

Fired when a bundle enters the resolve phase.

RESOLVED

ct/­framework/­BundleEvent/­RESOLVED

Fired when all classes (JavaScript sources) are resolved.

UNRESOLVED

ct/­framework/­BundleEvent/­UNRESOLVED

Fired during the uninstallation of a bundle.

STARTING

ct/­framework/­BundleEvent/­STARTING

Fired at the beginning of a bundle start.

STOPPING

ct/­framework/­BundleEvent/­STOPPING

Fired at the beginning of a bundle stop.

Service events

ServiceEvent.types Event Service topic Description

REGISTERED

ct/­framework/­ServiceEvent/­REGISTERED

Fired when a new service is registered.

UNREGISTERING

ct/­framework/­ServiceEvent/­UNREGISTERING

Fired when a service should be unregistered (consumers should unget instances).

MODIFIED

ct/­framework/­ServiceEvent/­MODIFIED

Fired when the service properties of a service are changed.