concept event Admin in category osgi

appears as: The Event Admin, Event Admin, Event Admin
OSGi in Depth

This is an excerpt from Manning's book OSGi in Depth.

Figure 6.3. Event Admin mediates web service applications and auditors.

The Event Admin is a mediator service that allows publishers to send events to subscribers. A publisher can send an event by invoking the EventAdmin.postEvent() method to send an event asynchronously or the EventAdmin.sendEvent() method to send an event synchronously. A subscriber can receive events by registering the EventHandler interface in the OSGi registry. Publishers and subscribers exchange events on a common channel, or topic. A topic name is hierarchical, such as "org/osgi/framework/BundleEvent/INSTALLED". Multiple publishers may send events to the same topic, and multiple subscribers can connect to the same topic.

By subscribing to OSGi events, the Event Admin becomes a useful tool for implementing the extender pattern, because it allows you to implement more complex event-handling scenarios, such as filtering.