Chapter 11. Support for OSGi compendium services

 

This chapter covers

  • How to use the main OSGi compendium services with Spring DM
  • Spring DM’s support for OSGi compendium services
  • The benefits of using compendium services with Spring DM

The chapters in this part of the book cover advanced aspects of Spring DM. In the two previous chapters, we dealt with advanced configuration and unit tests. In this chapter, we’ll describe features corresponding to additional OSGi specifications. Besides the core OSGi specification, the OSGi alliance provides an additional specification describing standardized services called compendium services.

The range of these services is wide—the services can be specific to environments other than enterprise applications. But some of them can be useful in the context of Spring DM because they allow for the centralization of certain behaviors and provide a level of indirection between the components and tools of an OSGi system. They can enable configuration and events to be externalized from Spring DM. The framework offers mechanisms that can transparently link configured beans with these services.

11.1. Overview of compendium services

11.2. Spring DM’s Configuration Admin Service support

11.3. Spring DM’s Event Admin Service support

11.4. Summary