Every OSGi framework sends (asynchronously) a number of events that can be captured by any bundle.
Framework Events
- org/osgi/framework/BundleEvent/STARTED
- org/osgi/framework/BundleEvent/ERROR
- org/osgi/framework/BundleEvent/PACKAGES_REFRESHED
- org/osgi/framework/BundleEvent/STARTLEVEL_CHANGED
- org/osgi/framework/BundleEvent/WARNING
- org/osgi/framework/BundleEvent/INFO
Bundle Events
- org/osgi/framework/BundleEvent/INSTALLED
- org/osgi/framework/BundleEvent/STARTED
- org/osgi/framework/BundleEvent/STOPPED
- org/osgi/framework/BundleEvent/UPDATED
- org/osgi/framework/BundleEvent/UNINSTALLED
- org/osgi/framework/BundleEvent/RESOLVED
- org/osgi/framework/BundleEvent/UNRESOLVED
The followig properties are always present in a bundle event object:
- bundle.id
- bundle.symbolicName
Service Events
- org/osgi/framework/ServiceEvent/REGISTERED
- org/osgi/framework/ServiceEvent/MODIFIED
- org/osgi/framework/ServiceEvent/UNREGISTERING
The following properties are always present in a service event object:
- service
- service.id
- service.pid
Ref: http://felix.apache.org/site/apache-felix-event-admin.html
No comments:
Post a Comment