|
OSGi™ Core Release 6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.osgi.resource.Namespace org.osgi.framework.namespace.AbstractWiringNamespace org.osgi.framework.namespace.PackageNamespace
public final class PackageNamespace
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.
effective
directives
must be ignored.
This namespace is only effective at resolve
time. An effective
directive specified on the
Export-Package
, Import-Package
or
DynamicImport-Package
headers must be ignored. An effective
directive must not be present in a capability or requirement.cardinality
directive has limited applicability to this namespace. A cardinality
directive specified on the Import-Package
or
DynamicImport-Package
headers must be ignored. Only requirements with
resolution
set to
dynamic
and the package name contains a wildcard
must have the cardinality
directive set to
multiple
. Otherwise, a
cardinality
directive must not be present in a requirement.
Field Summary | |
---|---|
static String |
CAPABILITY_BUNDLE_SYMBOLICNAME_ATTRIBUTE
The capability attribute contains the symbolic name of the resource providing the package. |
static String |
CAPABILITY_EXCLUDE_DIRECTIVE
The capability directive used to specify the comma separated list of classes which must not be allowed to be exported. |
static String |
CAPABILITY_INCLUDE_DIRECTIVE
The capability directive used to specify the comma separated list of classes which must be allowed to be exported. |
static String |
CAPABILITY_VERSION_ATTRIBUTE
The capability attribute contains the Version of the package if
one is specified or 0.0.0 if not specified. |
static String |
PACKAGE_NAMESPACE
Namespace name for package capabilities and requirements. |
static String |
RESOLUTION_DYNAMIC
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 |
Method Summary |
---|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String PACKAGE_NAMESPACE
Also, the capability attribute used to specify the name of the package.
public static final String CAPABILITY_INCLUDE_DIRECTIVE
public static final String CAPABILITY_EXCLUDE_DIRECTIVE
public static final String CAPABILITY_VERSION_ATTRIBUTE
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
.
public static final String CAPABILITY_BUNDLE_SYMBOLICNAME_ATTRIBUTE
public static final String RESOLUTION_DYNAMIC
Namespace.REQUIREMENT_RESOLUTION_DIRECTIVE
,
Constant Field Values
|
OSGi™ Core Release 6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |