Chapter 6. A world of events

 

This chapter covers
  • Publishing events using the Event Admin service
  • Subscribing to events using the Event Admin service
  • Trade-offs between publishing events in a blocked and unblocked manner
  • Subscribing to specific events by using filtering
  • Issues related to ordering of events and exception handling within event handlers
  • Improving decoupling by exchanging events
  • Subscribing to OSGi framework events
  • The extender pattern

 

In this chapter you’ll learn about the OSGi Event Admin service. The Event Admin provides a generic mechanism for handling events. Using the Event Admin service, you can not only receive events but also generate your own set of application events to be received by other applications. By employing ...

Get OSGi in Depth now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.