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
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

Design patterns


A design pattern is a reusable element of software architecture that can be applied to different situations. This section presents the two most common OSGi-specific patterns: whiteboard and extender.

The whiteboard pattern

The OSGi whiteboard pattern is one in which updates are communicated by bundles to a central location. This approach can be compared to that of a shared whiteboard where someone updates an entry on the whiteboard and others can come and have a look at it, without needing any direct connection or coupling between them, as illustrated in the following diagram:

Provided that the individual has a reference to the shared whiteboard, they can add notes to it. This allows others to pick up the message without having any direct relationship with the individual who created it:

The OSGi Service Registry and OSGi Event Admin (covered in Chapter 8, Event-driven Applications with EventAdmin) are both examples of the whiteboard pattern. Here, bundles talk to the shared service...

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