com.eurotech.framework.configuration
Interface ComponentConfiguration


public interface ComponentConfiguration

The ComponentConfiguration groups all the information related to the Configuration of a Component. It provides access to parsed ObjectClassDefintion associated to this Component. ComponentConfiguration does not reuse the OSGi ObjectClassDefinition as the latter does not provide access to certain aspects such as the required attribute, the min and max values. Instead it returns the raw ObjectClassDefintion as parsed from the MetaType Information XML resource associated to this Component.


Method Summary
 Map<String,Object> getConfigurationProperties()
          Returns the Dictionary of properties currently used by this component.
 OCD getDefinition()
          Returns the raw ObjectClassDefinition as parsed from the MetaType Information XML resource associated to this Component.
 String getPid()
          Returns the PID (service's persistent identity) of the component associated to this Configuration.
 

Method Detail

getPid

String getPid()
Returns the PID (service's persistent identity) of the component associated to this Configuration. The service's persistent identity is defined as the name attribute of the Component Descriptor XML file; at runtime, the same value is also available in the component.name and in the service.pid attributes of the Component Configuration.

Returns:
PID of the component associated to this Configuration.

getDefinition

OCD getDefinition()
Returns the raw ObjectClassDefinition as parsed from the MetaType Information XML resource associated to this Component.

Returns:

getConfigurationProperties

Map<String,Object> getConfigurationProperties()
Returns the Dictionary of properties currently used by this component.

Returns:
the Component's Configuration properties.


Copyright © 2013. All Rights Reserved.