类 PackageNamespace
- java.lang.Object
-
- org.osgi.resource.Namespace
-
- org.osgi.framework.namespace.AbstractWiringNamespace
-
- org.osgi.framework.namespace.PackageNamespace
-
public final class PackageNamespace extends AbstractWiringNamespace
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
Stringand are used as arbitrary matching attributes for the capability. The values associated with the specified directive and attribute keys are of typeString, unless otherwise indicated.Unless otherwise noted, all directives specified on the
Export-Packageheader are visible in the capability and all directives specified on theImport-PackageandDynamicImport-Packageheaders are visible in the requirement.- The
effectivedirectivesmust be ignored. This namespace is only effective atresolvetime. Aneffectivedirective specified on theExport-Package,Import-PackageorDynamicImport-Packageheaders must be ignored. Aneffectivedirective must not be present in a capability or requirement. - The
cardinalitydirective has limited applicability to this namespace. Acardinalitydirective specified on theImport-PackageorDynamicImport-Packageheaders must be ignored. Only requirements withresolutionset todynamicand the package name contains a wildcard must have thecardinalitydirective set tomultiple. Otherwise, acardinalitydirective must not be present in a requirement.
- 作者:
- $Id: 5f241fb0804d477ab8f2d33f247d45e62caf72df $
- The
-
-
字段概要
字段 修饰符和类型 字段 说明 static java.lang.StringCAPABILITY_BUNDLE_SYMBOLICNAME_ATTRIBUTEThe capability attribute contains the symbolic name of the resource providing the package.static java.lang.StringCAPABILITY_EXCLUDE_DIRECTIVEThe capability directive used to specify the comma separated list of classes which must not be allowed to be exported.static java.lang.StringCAPABILITY_INCLUDE_DIRECTIVEThe capability directive used to specify the comma separated list of classes which must be allowed to be exported.static java.lang.StringCAPABILITY_VERSION_ATTRIBUTEThe capability attribute contains theVersionof the package if one is specified or0.0.0if not specified.static java.lang.StringPACKAGE_NAMESPACENamespace name for package capabilities and requirements.static java.lang.StringRESOLUTION_DYNAMICThe directive value identifying a dynamic requirement resolution type.-
从类继承的字段 org.osgi.framework.namespace.AbstractWiringNamespace
CAPABILITY_BUNDLE_VERSION_ATTRIBUTE, CAPABILITY_MANDATORY_DIRECTIVE
-
从类继承的字段 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
-
-
-
-
字段详细资料
-
PACKAGE_NAMESPACE
public static final java.lang.String PACKAGE_NAMESPACE
Namespace name for package capabilities and requirements.Also, the capability attribute used to specify the name of the package.
- 另请参阅:
- 常量字段值
-
CAPABILITY_INCLUDE_DIRECTIVE
public static final java.lang.String CAPABILITY_INCLUDE_DIRECTIVE
The capability directive used to specify the comma separated list of classes which must be allowed to be exported.- 另请参阅:
- 常量字段值
-
CAPABILITY_EXCLUDE_DIRECTIVE
public static final java.lang.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_VERSION_ATTRIBUTE
public static final java.lang.String CAPABILITY_VERSION_ATTRIBUTE
The capability attribute contains theVersionof the package if one is specified or0.0.0if not specified. The value of this attribute must be of typeVersion.- 另请参阅:
- 常量字段值
-
CAPABILITY_BUNDLE_SYMBOLICNAME_ATTRIBUTE
public static final java.lang.String CAPABILITY_BUNDLE_SYMBOLICNAME_ATTRIBUTE
The capability attribute contains the symbolic name of the resource providing the package.- 另请参阅:
- 常量字段值
-
RESOLUTION_DYNAMIC
public static final java.lang.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.
-
-