Class PackageNamespace
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.
- The
effective
directives
must be ignored. This namespace is only effective atresolve
time. Aneffective
directive specified on theExport-Package
,Import-Package
orDynamicImport-Package
headers must be ignored. Aneffective
directive must not be present in a capability or requirement. - The
cardinality
directive has limited applicability to this namespace. Acardinality
directive specified on theImport-Package
orDynamicImport-Package
headers must be ignored. Only requirements withresolution
set todynamic
and the package name contains a wildcard must have thecardinality
directive set tomultiple
. Otherwise, acardinality
directive must not be present in a requirement.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The capability attribute contains the symbolic name of the resource providing the package.static final String
The capability directive used to specify the comma separated list of classes which must not be allowed to be exported.static final String
The capability directive used to specify the comma separated list of classes which must be allowed to be exported.static final String
The capability attribute contains theVersion
of the package if one is specified or0.0.0
if not specified.static final String
Namespace name for package capabilities and requirements.static final String
The directive value identifying a dynamic requirement resolution type.Fields inherited from class org.osgi.framework.namespace.AbstractWiringNamespace
CAPABILITY_BUNDLE_VERSION_ATTRIBUTE, CAPABILITY_MANDATORY_DIRECTIVE
Fields inherited from class org.osgi.resource.Namespace
CAPABILITY_EFFECTIVE_DIRECTIVE, CAPABILITY_USES_DIRECTIVE, CARDINALITY_MULTIPLE, CARDINALITY_SINGLE, EFFECTIVE_ACTIVE, EFFECTIVE_RESOLVE, REQUIREMENT_CARDINALITY_DIRECTIVE, REQUIREMENT_EFFECTIVE_DIRECTIVE, REQUIREMENT_FILTER_DIRECTIVE, REQUIREMENT_RESOLUTION_DIRECTIVE, RESOLUTION_MANDATORY, RESOLUTION_OPTIONAL
-
Method Summary
-
Field Details
-
PACKAGE_NAMESPACE
Namespace name for package capabilities and requirements.Also, the capability attribute used to specify the name of the package.
- See Also:
-
CAPABILITY_INCLUDE_DIRECTIVE
The capability directive used to specify the comma separated list of classes which must be allowed to be exported.- See Also:
-
CAPABILITY_EXCLUDE_DIRECTIVE
The capability directive used to specify the comma separated list of classes which must not be allowed to be exported.- See Also:
-
CAPABILITY_VERSION_ATTRIBUTE
The capability attribute contains theVersion
of the package if one is specified or0.0.0
if not specified. The value of this attribute must be of typeVersion
.- See Also:
-
CAPABILITY_BUNDLE_SYMBOLICNAME_ATTRIBUTE
The capability attribute contains the symbolic name of the resource providing the package.- See Also:
-
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.
-