Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Mastering Eclipse Plug-in Development

You're reading from   Mastering Eclipse Plug-in Development Build modular applications on Eclipse by defining custom extension points and using OSGi services

Arrow left icon
Product type Paperback
Published in Aug 2014
Publisher
ISBN-13 9781783287796
Length 362 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Authors (2):
Arrow left icon
Bandlem Limited Bandlem Limited
Author Profile Icon Bandlem Limited
Bandlem Limited
Alex Blewitt Alex Blewitt
Author Profile Icon Alex Blewitt
Alex Blewitt
Arrow right icon
View More author details
Toc

Understanding the OSGi EventAdmin service


The OSGi EventAdmin service is described in the OSGi Compendium and OSGi Enterprise specifications in Chapter 113, Event Admin Service Specification. It provides a means to use a publish and subscribe mechanism to send events that may be targeted at a particular topic and may contain an arbitrary number of event properties.

Event topics are text names that are used to identify where the event will be delivered. They are represented with a slash (/) separating parts of the name, for example, org/osgi/framework/ServiceEvent or org/osgi/service/log/LogEntry.

An Event is an immutable object, initialized from a Dictionary or Map, which has a number of properties. These properties can store user-specific data, along with a number of other (potentially null) standard properties from the EventConstants class:

  • BUNDLE_IDbundle.id, the bundle's ID number

  • BUNDLE_SIGNERbundle.signer, the name of the signer of the bundle

  • BUNDLE_SYMBOLICNAMEbundle.symbolicName...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image