Top Description Fields Constructors
org.osgi.service.serviceloader

public final Class ServiceLoaderNamespace

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

Service Loader Capability and Requirement Namespace.

This class defines the names for the attributes and directives for this namespace.

All unspecified capability attributes are of one of the following types:

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.

All unspecified capability attributes, unless the attribute name starts with full stop ('.' \u002E), are also used as service properties when registering a Service Provider as a service.

Author
$Id: dc10ac5db968434a8af4d141e8d5e6b424b3cd49 $

Field Summary

Modifier and TypeField and Description
public static final String
CAPABILITY_REGISTER_DIRECTIVE

The capability directive used to specify the implementation classes of the service.

public static final String
SERVICELOADER_NAMESPACE

Namespace name for service loader capabilities and requirements.

Inherited from org.osgi.resource.Namespace:
CAPABILITY_EFFECTIVE_DIRECTIVECAPABILITY_USES_DIRECTIVECARDINALITY_MULTIPLECARDINALITY_SINGLEEFFECTIVE_ACTIVEEFFECTIVE_RESOLVEREQUIREMENT_CARDINALITY_DIRECTIVEREQUIREMENT_EFFECTIVE_DIRECTIVEREQUIREMENT_FILTER_DIRECTIVEREQUIREMENT_RESOLUTION_DIRECTIVERESOLUTION_MANDATORYRESOLUTION_OPTIONAL

Constructor Summary

AccessConstructor and Description
private

Field Detail

CAPABILITY_REGISTER_DIRECTIVEback to summary
public static final String CAPABILITY_REGISTER_DIRECTIVE

The capability directive used to specify the implementation classes of the service. The value of this attribute must be of type List<String>.

If this directive is not specified, then all advertised Service Providers that match the service type name must be registered. If this directive is specified, then only Service Providers that match the service type name whose implementation class is contained in the value of this attribute must be registered. To not register a service for this capability use an empty string.

SERVICELOADER_NAMESPACEback to summary
public static final String SERVICELOADER_NAMESPACE

Namespace name for service loader capabilities and requirements.

Also, the capability attribute used to specify the fully qualified name of the service type.

Constructor Detail

ServiceLoaderNamespaceback to summary
private ServiceLoaderNamespace()