Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 4.0

...

Dependency Manager provides a compact and versatile java API, allowing to declaratively and programmatically register, acquire, and manage dynamic OSGi services. But since recently, support for annotations has been introduced in Dependency Manager, and you can also manage your service components, and their dynamic component dependencies using Java 5 annotations. In this chapter, we will detail the Dependency Manager Annotations which can be used to describe service components. We will also discuss the DM component lifecycle and how components can interract with the dynamic OSGi service model.

Table of Contents

  • Quick Start Provides a "Hello World" example, and shows how to compile it.
  • Spell Checker Sample Helps Quick Tour helps you with the basic concepts using a full SpellChecker sample code.
  • Reference Guide a full reference guide to lookup all annotation details.
  • Common Usages Covers some common usage scenarios using annotations
  • Compiling explains how to build annotated bundle using Maven, Bnd, or Ant.
  • Writing Components Explains how to write DM service components using annotations.
  • Using Dependencies Explains how to annotate dependencies for a given component.
  • Lifecycle Explains the DM component lifecycle and how components interact with the dynamic OSGI service model.
  • Composition Explains how a component may be implemented using multiple object instancesTesting shows how you can write junit tests using Pax Exams..