August 2001
Intermediate to advanced
480 pages
9h 14m
English
BundleEvents and FrameworkEvents are useful for administrative bundles. For example, a management bundle may present a user interface that enumerates all bundles currently installed in the framework. By listening to BundleEvents, it can dynamically update the list—remove an entry when the bundle is uninstalled, add an entry when a new bundle is installed, or change the status when a bundle is activated.
As another example, some diagnostic bundle may listen to FrameworkEvent.ERROR events and may report error conditions raised that way.
Let us demonstrate, in the following example, how bundles can cooperate using BundleEvent, and what to look for when dealing with asynchronously delivered events. Recall ...
Read now
Unlock full access