OSGi™ Service Platform
Release 4 Version 4.1

org.osgi.service.component
Interface ComponentConstants


public interface ComponentConstants

Defines standard names for Service Component constants.


Field Summary
static java.lang.String COMPONENT_FACTORY
          A service registration property for a Component Factory that contains the value of the factory attribute.
static java.lang.String COMPONENT_ID
          A component property that contains the generated id for a component configuration.
static java.lang.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.
static java.lang.String REFERENCE_TARGET_SUFFIX
          The suffix for reference target properties.
static java.lang.String SERVICE_COMPONENT
          Manifest header (named "Service-Component") specifying the XML documents within a bundle that contain the bundle's Service Component descriptions.
 

Field Detail

SERVICE_COMPONENT

public static final java.lang.String SERVICE_COMPONENT
Manifest header (named "Service-Component") 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.

See Also:
Constant Field Values

COMPONENT_NAME

public static final java.lang.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 type of this property must be String.

See Also:
Constant Field Values

COMPONENT_ID

public static final java.lang.String COMPONENT_ID
A component property that contains the generated id for a component configuration. The type of this property must be Long.

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

See Also:
Constant Field Values

COMPONENT_FACTORY

public static final java.lang.String COMPONENT_FACTORY
A service registration property for a Component Factory that contains the value of the factory attribute. The type of this property must be String.

See Also:
Constant Field Values

REFERENCE_TARGET_SUFFIX

public static final java.lang.String REFERENCE_TARGET_SUFFIX
The suffix for reference target properties. These properties contain the filter to select the target services for a reference. The type of this property must be String.

See Also:
Constant Field Values

OSGi™ Service Platform
Release 4 Version 4.1

Copyright © OSGi Alliance (2000, 2007). All Rights Reserved. Licensed under the OSGi Specification License, Version 1.0