Top Description Fields Constructors
org.osgi.framework.namespace

public final Class PackageNamespace

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

Package Capability and Requirement Namespace.

A resource provides zero or more package capabilities (this is, exported packages) and requires zero or more package requirements (that is, imported packages).

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 Export-Package header are visible in the capability and all directives specified on the Import-Package and DynamicImport-Package headers are visible in the requirement.

Author
$Id: 5f241fb0804d477ab8f2d33f247d45e62caf72df $

Field Summary

Modifier and TypeField and Description
public static final String
CAPABILITY_BUNDLE_SYMBOLICNAME_ATTRIBUTE

The capability attribute contains the symbolic name of the resource providing the package.

public static final String
CAPABILITY_EXCLUDE_DIRECTIVE

The capability directive used to specify the comma separated list of classes which must not be allowed to be exported.

public static final String
CAPABILITY_INCLUDE_DIRECTIVE

The capability directive used to specify the comma separated list of classes which must be allowed to be exported.

public static final String
CAPABILITY_VERSION_ATTRIBUTE

The capability attribute contains the Version of the package if one is specified or 0.0.0 if not specified.

public static final String
PACKAGE_NAMESPACE

Namespace name for package capabilities and requirements.

public static final String
RESOLUTION_DYNAMIC

The directive value identifying a dynamic requirement resolution type.

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

Constructor Summary

AccessConstructor and Description
private

Field Detail

CAPABILITY_BUNDLE_SYMBOLICNAME_ATTRIBUTEback to summary
public static final String CAPABILITY_BUNDLE_SYMBOLICNAME_ATTRIBUTE

The capability attribute contains the symbolic name of the resource providing the package.

CAPABILITY_EXCLUDE_DIRECTIVEback to summary
public static final String CAPABILITY_EXCLUDE_DIRECTIVE

The capability directive used to specify the comma separated list of classes which must not be allowed to be exported.

CAPABILITY_INCLUDE_DIRECTIVEback to summary
public static final String CAPABILITY_INCLUDE_DIRECTIVE

The capability directive used to specify the comma separated list of classes which must be allowed to be exported.

CAPABILITY_VERSION_ATTRIBUTEback to summary
public static final String CAPABILITY_VERSION_ATTRIBUTE

The capability attribute contains the Version of the package if one is specified or 0.0.0 if not specified. The value of this attribute must be of type Version.

PACKAGE_NAMESPACEback to summary
public static final String PACKAGE_NAMESPACE

Namespace name for package capabilities and requirements.

Also, the capability attribute used to specify the name of the package.

RESOLUTION_DYNAMICback to summary
public static final String RESOLUTION_DYNAMIC

The directive value identifying a dynamic requirement resolution type. A dynamic resolution type indicates that the requirement is resolved dynamically at runtime (such as a dynamically imported package) and the resource will be resolved without the requirement being resolved.

See Also
Namespace#REQUIREMENT_RESOLUTION_DIRECTIVE

Constructor Detail

PackageNamespaceback to summary
private PackageNamespace()