Chapter 2. Understanding OSGi technology
Listing 2.1. Simple manifest configuration for an OSGi component
Listing 2.2. Accessing general and configuration information about a bundle
Listing 2.3. Accessing properties using the BundleContext interface
Listing 2.4. Handling a bundle event in an asynchronous listener
Listing 2.5. Interacting with the persistent storage area of a component
Listing 2.6. Registering and unregistering services with a BundleActivator
Listing 2.7. Simple implementation of the HelloWorldService interface
Listing 2.8. Simple implementation of the ServiceFactory interface
Listing 2.9. Consuming an OSGi service
Listing 2.10. Using the ServiceTracker
Listing 2.11. A ServiceListener implementation handling service events
Listing 2.12. Exception related to a missing constraint exception
Listing 2.13. Exception during component initialization
Chapter 3. Getting started with Spring DM
Listing 3.1. Spring DM osgi namespace declaration nested in Spring beans namespace
Listing 3.2. Spring DM osgi namespace declared as the top-level namespace
Listing 3.3. POM modification for packaging with Felix Bundle Plugin
Listing 3.4. Maven 2 dependencies for OSGi integration tests
Listing 3.5. Spring’s dependencies
Listing 3.6. Extra dependencies for OSGi integration test
Listing 3.7. Maven 2 repositories for OSGi bundles
Listing 3.8. The bundle integration test
Listing 3.9. POM modification to package the web bundle
Listing 3.10. Minimal Maven 2 dependencies for web support