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

Dynamic Service Configuration


OSGi provides a standard configuration mechanism called Config Admin. This allows the location of configuration information to be decoupled from the code that requires the configuration. Configuration is passed through to services via a Map or Hashtable, and they can then configure themselves appropriately.

As with other parts in OSGi, this can also be dynamically updated. When the configuration source changes, an event can flow through to the service or component in order to allow it to reconfigure itself.

Installing Felix FileInstall

Config Admin itself is an OSGi service, and it may be supplied by different configuration agents. A de facto standard is Apache Felix's FileInstall, which can also be used to install bundles into an OSGi runtime.

FileInstall is available from the Apache Felix site at http://felix.apache.org as well as Maven Central. Download org.apache.felix.fileinstall-3.2.8.jar and import it into Eclipse as a plug-in project by navigating to File...

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