com.eurotech.framework.core.configuration
Class ComponentConfigurationImpl

java.lang.Object
  extended by com.eurotech.framework.core.configuration.ComponentConfigurationImpl
All Implemented Interfaces:
ComponentConfiguration

public class ComponentConfigurationImpl
extends Object
implements ComponentConfiguration


Field Summary
protected  Tocd definition
           
protected  String pid
           
protected  Map<String,Object> properties
           
 
Constructor Summary
ComponentConfigurationImpl()
           
ComponentConfigurationImpl(String pid, Tocd definition, Map<String,Object> properties)
           
 
Method Summary
 Map<String,Object> getConfigurationProperties()
          Returns the Dictionary of properties currently used by this component.
 Tocd 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.
 void setDefinition(Tocd definition)
           
 void setPid(String pid)
           
 void setProperties(Map<String,Object> properties)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

pid

protected String pid

definition

protected Tocd definition

properties

protected Map<String,Object> properties
Constructor Detail

ComponentConfigurationImpl

public ComponentConfigurationImpl()

ComponentConfigurationImpl

public ComponentConfigurationImpl(String pid,
                                  Tocd definition,
                                  Map<String,Object> properties)
Method Detail

getPid

public String getPid()
Description copied from interface: ComponentConfiguration
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.

Specified by:
getPid in interface ComponentConfiguration
Returns:
PID of the component associated to this Configuration.

getDefinition

public Tocd getDefinition()
Description copied from interface: ComponentConfiguration
Returns the raw ObjectClassDefinition as parsed from the MetaType Information XML resource associated to this Component.

Specified by:
getDefinition in interface ComponentConfiguration
Returns:

getConfigurationProperties

public Map<String,Object> getConfigurationProperties()
Description copied from interface: ComponentConfiguration
Returns the Dictionary of properties currently used by this component.

Specified by:
getConfigurationProperties in interface ComponentConfiguration
Returns:
the Component's Configuration properties.

setPid

public void setPid(String pid)

setDefinition

public void setDefinition(Tocd definition)

setProperties

public void setProperties(Map<String,Object> properties)


Copyright © 2013. All Rights Reserved.