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

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

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