Chapter 2. The Bundle Descriptor

Table of Contents

The XML Schema
The Namespace
The "bundle" Element (Root Element)
The "headers" Element
The "exports" Element
The "imports" Element

The bundle descriptor is an XML file that contains meta-information about the bundle to be created.

The XML Schema

There is an XML Schema for the bundle descriptor presented in this chapter. You can find it under src/java/ch/jm/osgi/util/bundle/bundle.xsd in the source distribution or under ch/jm/osgi/util/bundle/bundle.xsd in the JAR file. The bundle descriptors are automatically validated against the schema when they are loaded by the Ant tasks.

Note

Please note that not the full structure of the bundle descriptor is described in prose here. Please refer to the XML Schema when in doubt about the structuring.