Class HostNamespace
- java.lang.Object
-
- org.osgi.resource.Namespace
-
- org.osgi.framework.namespace.AbstractWiringNamespace
-
- org.osgi.framework.namespace.HostNamespace
-
public final class HostNamespace extends AbstractWiringNamespace
Host Capability and Requirement Namespace.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
Bundle-SymbolicNameheader are visible in the capability and all directives specified on theFragment-Hostheader are visible in the requirement.- The
usesdirective must be ignored. Ausesdirective specified on theBundle-SymbolicNameheader must be ignored. Ausesdirective must not be present in the capability. - The
effectivedirectivesmust be ignored. This namespace is only effective atresolvetime. Aneffectivedirective specified on theBundle-SymbolicNameorFragment-Hostheaders must be ignored. Aneffectivedirective must not be present in a capability or requirement. - The
cardinalitydirective has limited applicability to this namespace. Acardinalitydirective specified on theFragment-Hostheader must be ignored. All requirements must have thecardinalitydirective set tomultiple.
A non-fragment resource with the
osgi.bundletypeidentityprovides zero or one† host capabilities. A fragment resource with theosgi.fragmenttypeidentitymust not declare a host capability and must declare exactly one host requirement.† A resource with no bundle symbolic name must not provide a host capability.
- The
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringCAPABILITY_FRAGMENT_ATTACHMENT_DIRECTIVEThe capability directive identifying if and when a fragment may attach to a host bundle.static java.lang.StringCAPABILITY_SINGLETON_DIRECTIVEThe capability directive identifying if the resource is a singleton.static java.lang.StringEXTENSION_BOOTCLASSPATHDeprecated.As of 1.2.static java.lang.StringEXTENSION_FRAMEWORKThe directive value indicating that the extension fragment is to be loaded by the framework's class loader.static java.lang.StringFRAGMENT_ATTACHMENT_ALWAYSThe directive value indicating that fragments are allowed to attach to the host bundle at any time (while the host is resolved or during the process of resolving the host bundle).static java.lang.StringFRAGMENT_ATTACHMENT_NEVERThe directive value indicating that no fragments are allowed to attach to the host bundle at any time.static java.lang.StringFRAGMENT_ATTACHMENT_RESOLVETIMEThe directive value indicating that fragments are allowed to attach to the host bundle only during the process of resolving the host bundle.static java.lang.StringHOST_NAMESPACENamespace name for host capabilities and requirements.static java.lang.StringREQUIREMENT_EXTENSION_DIRECTIVEThe requirement directive used to specify the type of the extension fragment.static java.lang.StringREQUIREMENT_VISIBILITY_DIRECTIVEThe requirement directive used to specify the visibility type for a requirement.-
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
-
-
-
-
Field Detail
-
HOST_NAMESPACE
public static final java.lang.String HOST_NAMESPACE
Namespace name for host capabilities and requirements.Also, the capability attribute used to specify the symbolic name of the host.
- See Also:
- Constant Field Values
-
CAPABILITY_SINGLETON_DIRECTIVE
public static final java.lang.String CAPABILITY_SINGLETON_DIRECTIVE
The capability directive identifying if the resource is a singleton. AStringvalue of "true" indicates the resource is a singleton; any other value ornullindicates the resource is not a singleton.This directive should be examined using the
identitynamespace.
-
CAPABILITY_FRAGMENT_ATTACHMENT_DIRECTIVE
public static final java.lang.String CAPABILITY_FRAGMENT_ATTACHMENT_DIRECTIVE
The capability directive identifying if and when a fragment may attach to a host bundle. The default value isalways.
-
FRAGMENT_ATTACHMENT_ALWAYS
public static final java.lang.String FRAGMENT_ATTACHMENT_ALWAYS
The directive value indicating that fragments are allowed to attach to the host bundle at any time (while the host is resolved or during the process of resolving the host bundle).
-
FRAGMENT_ATTACHMENT_RESOLVETIME
public static final java.lang.String FRAGMENT_ATTACHMENT_RESOLVETIME
The directive value indicating that fragments are allowed to attach to the host bundle only during the process of resolving the host bundle.
-
FRAGMENT_ATTACHMENT_NEVER
public static final java.lang.String FRAGMENT_ATTACHMENT_NEVER
The directive value indicating that no fragments are allowed to attach to the host bundle at any time.
-
REQUIREMENT_EXTENSION_DIRECTIVE
public static final java.lang.String REQUIREMENT_EXTENSION_DIRECTIVE
The requirement directive used to specify the type of the extension fragment. The default value isframework.- See Also:
EXTENSION_FRAMEWORK, Constant Field Values
-
EXTENSION_FRAMEWORK
public static final java.lang.String EXTENSION_FRAMEWORK
The directive value indicating that the extension fragment is to be loaded by the framework's class loader.
-
EXTENSION_BOOTCLASSPATH
public static final java.lang.String EXTENSION_BOOTCLASSPATH
Deprecated.As of 1.2.The directive value indicating that the extension fragment is to be loaded by the boot class loader.
-
REQUIREMENT_VISIBILITY_DIRECTIVE
public static final java.lang.String REQUIREMENT_VISIBILITY_DIRECTIVE
The requirement directive used to specify the visibility type for a requirement.This directive should be examined using the
bundlenamespace.
-
-