Top Description Fields Constructors
org.osgi.framework.namespace

public final Class BundleNamespace

extends AbstractWiringNamespace
Class Inheritance
Imports
org.osgi.resource.Namespace

Bundle Capability and Requirement Namespace.

This class defines the names for the attributes and directives for this namespace. All unspecified capability attributes are of type String and are used as arbitrary matching attributes for the capability. The values associated with the specified directive and attribute keys are of type String, unless otherwise indicated.

Unless otherwise noted, all directives specified on the Bundle-SymbolicName header are visible in the capability and all directives specified on the Require-Bundle header are visible in the requirement.

A non-fragment resource with the osgi.bundle type identity provides exactly one† bundle capability (that is, the bundle can be required by another bundle). A fragment resource with the osgi.fragment type identity must not declare a bundle capability. A resource requires zero or more bundle requirements (that is, required bundles).

† A resource with no symbolic name must not provide a bundle capability.

Author
$Id: 2672d40cf3705b2cf21d01530e4bdfa2cdc61764 $

Field Summary

Modifier and TypeField and Description
public static final String
BUNDLE_NAMESPACE

Namespace name for bundle capabilities and requirements.

public static final String
CAPABILITY_FRAGMENT_ATTACHMENT_DIRECTIVE

The capability directive identifying if and when a fragment may attach to a host bundle.

public static final String
CAPABILITY_SINGLETON_DIRECTIVE

The capability directive identifying if the resource is a singleton.

public static final String
REQUIREMENT_EXTENSION_DIRECTIVE

The requirement directive used to specify the type of the extension fragment.

public static final String
REQUIREMENT_VISIBILITY_DIRECTIVE

The requirement directive used to specify the visibility type for a requirement.

public static final String
VISIBILITY_PRIVATE

The directive value identifying a private visibility type.

public static final String
VISIBILITY_REEXPORT

The directive value identifying a reexport visibility type.

Inherited from org.osgi.framework.namespace.AbstractWiringNamespace:
CAPABILITY_BUNDLE_VERSION_ATTRIBUTECAPABILITY_MANDATORY_DIRECTIVE

Constructor Summary

AccessConstructor and Description
private

Field Detail

BUNDLE_NAMESPACEback to summary
public static final String BUNDLE_NAMESPACE

Namespace name for bundle capabilities and requirements.

Also, the capability attribute used to specify the symbolic name of the bundle.

CAPABILITY_FRAGMENT_ATTACHMENT_DIRECTIVEback to summary
public static final String CAPABILITY_FRAGMENT_ATTACHMENT_DIRECTIVE

The capability directive identifying if and when a fragment may attach to a host bundle.

This directive should be examined using the host namespace.

See Also
HostNamespace#CAPABILITY_FRAGMENT_ATTACHMENT_DIRECTIVE
CAPABILITY_SINGLETON_DIRECTIVEback to summary
public static final String CAPABILITY_SINGLETON_DIRECTIVE

The capability directive identifying if the resource is a singleton. A String value of "true" indicates the resource is a singleton; any other value or null indicates the resource is not a singleton.

This directive should be examined using the identity namespace.

See Also
IdentityNamespace#CAPABILITY_SINGLETON_DIRECTIVE
REQUIREMENT_EXTENSION_DIRECTIVEback to summary
public static final String REQUIREMENT_EXTENSION_DIRECTIVE

The requirement directive used to specify the type of the extension fragment.

This directive should be examined using the host namespace.

See Also
HostNamespace#REQUIREMENT_EXTENSION_DIRECTIVE
REQUIREMENT_VISIBILITY_DIRECTIVEback to summary
public static final String REQUIREMENT_VISIBILITY_DIRECTIVE

The requirement directive used to specify the visibility type for a requirement. The default value is private.

See Also
private, reexport
VISIBILITY_PRIVATEback to summary
public static final String VISIBILITY_PRIVATE

The directive value identifying a private visibility type. A private visibility type indicates that any packages that are exported by the required bundle are not made visible on the export signature of the requiring bundle. .

See Also
REQUIREMENT_VISIBILITY_DIRECTIVE
VISIBILITY_REEXPORTback to summary
public static final String VISIBILITY_REEXPORT

The directive value identifying a reexport visibility type. A reexport visibility type indicates any packages that are exported by the required bundle are re-exported by the requiring bundle.

See Also
REQUIREMENT_VISIBILITY_DIRECTIVE

Constructor Detail

BundleNamespaceback to summary
private BundleNamespace()