Top Description Fields Constructors
org.osgi.framework.namespace

public final Class HostNamespace

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

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 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 Bundle-SymbolicName header are visible in the capability and all directives specified on the Fragment-Host header are visible in the requirement.

A non-fragment resource with the osgi.bundle type identity provides zero or one† host capabilities. A fragment resource with the osgi.fragment type identity must 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.

Author
$Id: 79484b4d0c372d8cebf7c767ec12e134b60b8411 $

Field Summary

Modifier and TypeField and Description
public static final String
CAPABILITY_FRAGMENT_ATTACHMENT_DIRECTIVE

The capability directive identifying if and when a fragment may attach to a host bundle.

public static final String
CAPABILITY_SINGLETON_DIRECTIVE

The capability directive identifying if the resource is a singleton.

public static final 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.
public static final String
EXTENSION_FRAMEWORK

The directive value indicating that the extension fragment is to be loaded by the framework's class loader.

public static final 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).

public static final String
FRAGMENT_ATTACHMENT_NEVER

The directive value indicating that no fragments are allowed to attach to the host bundle at any time.

public static final 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.

public static final String
HOST_NAMESPACE

Namespace name for host capabilities and requirements.

public static final String
REQUIREMENT_EXTENSION_DIRECTIVE

The requirement directive used to specify the type of the extension fragment.

public static final String
REQUIREMENT_VISIBILITY_DIRECTIVE

The requirement directive used to specify the visibility type for a requirement.

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

Constructor Summary

AccessConstructor and Description
private

Field Detail

CAPABILITY_FRAGMENT_ATTACHMENT_DIRECTIVEback to summary
public static final String CAPABILITY_FRAGMENT_ATTACHMENT_DIRECTIVE

The capability directive identifying if and when a fragment may attach to a host bundle. The default value is always.

See Also
FRAGMENT_ATTACHMENT_ALWAYS, FRAGMENT_ATTACHMENT_RESOLVETIME, FRAGMENT_ATTACHMENT_NEVER
CAPABILITY_SINGLETON_DIRECTIVEback to summary
public static final String CAPABILITY_SINGLETON_DIRECTIVE

The capability directive identifying if the resource is a singleton. A String value of "true" indicates the resource is a singleton; any other value or null indicates the resource is not a singleton.

This directive should be examined using the identity namespace.

See Also
IdentityNamespace#CAPABILITY_SINGLETON_DIRECTIVE
EXTENSION_BOOTCLASSPATHback to summary
public static final 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.

See Also
REQUIREMENT_EXTENSION_DIRECTIVE
EXTENSION_FRAMEWORKback to summary
public static final String EXTENSION_FRAMEWORK

The directive value indicating that the extension fragment is to be loaded by the framework's class loader.

See Also
REQUIREMENT_EXTENSION_DIRECTIVE
FRAGMENT_ATTACHMENT_ALWAYSback to summary
public static final 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).

See Also
CAPABILITY_FRAGMENT_ATTACHMENT_DIRECTIVE
FRAGMENT_ATTACHMENT_NEVERback to summary
public static final String FRAGMENT_ATTACHMENT_NEVER

The directive value indicating that no fragments are allowed to attach to the host bundle at any time.

See Also
CAPABILITY_FRAGMENT_ATTACHMENT_DIRECTIVE
FRAGMENT_ATTACHMENT_RESOLVETIMEback to summary
public static final 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.

See Also
CAPABILITY_FRAGMENT_ATTACHMENT_DIRECTIVE
HOST_NAMESPACEback to summary
public static final String HOST_NAMESPACE

Namespace name for host capabilities and requirements.

Also, the capability attribute used to specify the symbolic name of the host.

REQUIREMENT_EXTENSION_DIRECTIVEback to summary
public static final String REQUIREMENT_EXTENSION_DIRECTIVE

The requirement directive used to specify the type of the extension fragment. The default value is framework.

See Also
EXTENSION_FRAMEWORK
REQUIREMENT_VISIBILITY_DIRECTIVEback to summary
public static final String REQUIREMENT_VISIBILITY_DIRECTIVE

The requirement directive used to specify the visibility type for a requirement.

This directive should be examined using the bundle namespace.

See Also
BundleNamespace#REQUIREMENT_VISIBILITY_DIRECTIVE

Constructor Detail

HostNamespaceback to summary
private HostNamespace()