O'Reilly logo

Mastering Eclipse Plug-in Development by Dr. Alex Blewitt

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Summary

The OSGi EventAdmin service provides a simple means to implement an event-driven application model in an OSGi runtime, and uses topics made of string identifiers separated by slashes to partition the namespace for events. An Event contains a number of key/value pairs, using String keys and primitive or String values, which can then be received by EventHandler implementations.

Handlers are registered as standard OSGi services, and can take advantage of filtering based on event contents as well as topic names or prefixes. Events are used heavily within the Eclipse E4 platform, and there are E4-specific annotations @EventTopic and @UIEventTopic that can be used to invoke methods upon receipt of particular events.

Finally, the chapter presented ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required