Working with the OSGi service registry

You can create an object and register it as an OSGi service for use by third-party features that are deployed to Liberty.

About this task

Services are the OSGi lightweight and flexible component model. When you create services and wire them together with Java™ code, you can use mechanisms such as ServiceTrackers to help find the services that you want, and Declarative Services (DS) and Blueprint to specify the wiring declaratively. Liberty has standardized on using DS for wiring, except for a small number of cases where extra flexibility is required.