Top Description Fields
org.osgi.service.component

public Interface ComponentConstants

Annotations
@ProviderType
Imports
org.osgi.annotation.versioning.ProviderType

Defines standard names for Service Component constants.
Author
$Id: 6dc1d9f7552ecac2ac3bd1e3377216647cb39568 $

Field Summary

Modifier and TypeField and Description
public static final String
COMPONENT_CAPABILITY_NAME

Capability name for Service Component Runtime.

public static final String
COMPONENT_FACTORY

A service registration property for a Component Factory that contains the value of the factory attribute.

public static final String
COMPONENT_ID

A component property that contains the generated id for a component configuration.

public static final String
COMPONENT_NAME

A component property for a component configuration that contains the name of the component as specified in the name attribute of the component element.

public static final String
COMPONENT_SPECIFICATION_VERSION

Compile time constant for the Specification Version of Declarative Services.

public static final int
DEACTIVATION_REASON_BUNDLE_STOPPED

The component configuration was deactivated because the bundle was stopped.

public static final int
DEACTIVATION_REASON_CONFIGURATION_DELETED

The component configuration was deactivated because its configuration was deleted.

public static final int
DEACTIVATION_REASON_CONFIGURATION_MODIFIED

The component configuration was deactivated because its configuration was changed.

public static final int
DEACTIVATION_REASON_DISABLED

The component configuration was deactivated because the component was disabled.

public static final int
DEACTIVATION_REASON_DISPOSED

The component configuration was deactivated because the component was disposed.

public static final int
DEACTIVATION_REASON_REFERENCE

The component configuration was deactivated because a reference became unsatisfied.

public static final int
DEACTIVATION_REASON_UNSPECIFIED

The reason the component configuration was deactivated is unspecified.

public static final String
REFERENCE_NAME_SATISFYING_CONDITION

Reference name for a component's satisfying condition.

public static final String
REFERENCE_TARGET_SUFFIX

The suffix for the target property of a reference.

public static final String
SERVICE_COMPONENT

Manifest header specifying the XML documents within a bundle that contain the bundle's Service Component descriptions.

Field Detail

COMPONENT_CAPABILITY_NAMEback to summary
public static final String COMPONENT_CAPABILITY_NAME

Capability name for Service Component Runtime.

Used in Provide-Capability and Require-Capability manifest headers with the osgi.extender namespace. For example:

Require-Capability: osgi.extender;
 filter:="(&(osgi.extender=osgi.component)(version>=1.5)(!(version>=2.0)))"
Since
1.3
COMPONENT_FACTORYback to summary
public static final String COMPONENT_FACTORY

A service registration property for a Component Factory that contains the value of the factory attribute. The value of this property must be of type String.

COMPONENT_IDback to summary
public static final String COMPONENT_ID

A component property that contains the generated id for a component configuration. The value of this property must be of type Long.

The value of this property is assigned by Service Component Runtime when a component configuration is created. Service Component Runtime assigns a unique value that is larger than all previously assigned values since Service Component Runtime was started. These values are NOT persistent across restarts of Service Component Runtime.

COMPONENT_NAMEback to summary
public static final String COMPONENT_NAME

A component property for a component configuration that contains the name of the component as specified in the name attribute of the component element. The value of this property must be of type String.

COMPONENT_SPECIFICATION_VERSIONback to summary
public static final String COMPONENT_SPECIFICATION_VERSION

Compile time constant for the Specification Version of Declarative Services.

Used in Version and Requirement annotations. The value of this compile time constant will change when the specification version of Declarative Services is updated.

Since
1.4
DEACTIVATION_REASON_BUNDLE_STOPPEDback to summary
public static final int DEACTIVATION_REASON_BUNDLE_STOPPED

The component configuration was deactivated because the bundle was stopped.

Since
1.1
DEACTIVATION_REASON_CONFIGURATION_DELETEDback to summary
public static final int DEACTIVATION_REASON_CONFIGURATION_DELETED

The component configuration was deactivated because its configuration was deleted.

Since
1.1
DEACTIVATION_REASON_CONFIGURATION_MODIFIEDback to summary
public static final int DEACTIVATION_REASON_CONFIGURATION_MODIFIED

The component configuration was deactivated because its configuration was changed.

Since
1.1
DEACTIVATION_REASON_DISABLEDback to summary
public static final int DEACTIVATION_REASON_DISABLED

The component configuration was deactivated because the component was disabled.

Since
1.1
DEACTIVATION_REASON_DISPOSEDback to summary
public static final int DEACTIVATION_REASON_DISPOSED

The component configuration was deactivated because the component was disposed.

Since
1.1
DEACTIVATION_REASON_REFERENCEback to summary
public static final int DEACTIVATION_REASON_REFERENCE

The component configuration was deactivated because a reference became unsatisfied.

Since
1.1
DEACTIVATION_REASON_UNSPECIFIEDback to summary
public static final int DEACTIVATION_REASON_UNSPECIFIED

The reason the component configuration was deactivated is unspecified.

Since
1.1
REFERENCE_NAME_SATISFYING_CONDITIONback to summary
public static final String REFERENCE_NAME_SATISFYING_CONDITION

Reference name for a component's satisfying condition.

Since
1.5
REFERENCE_TARGET_SUFFIXback to summary
public static final String REFERENCE_TARGET_SUFFIX

The suffix for the target property of a reference. These properties contain the filter to select the target services for a reference. The value of a target property must be of type String.

SERVICE_COMPONENTback to summary
public static final String SERVICE_COMPONENT

Manifest header specifying the XML documents within a bundle that contain the bundle's Service Component descriptions.

The attribute value may be retrieved from the Dictionary object returned by the Bundle.getHeaders method.