com.germinus.easyconf
Class ComponentConfiguration

java.lang.Object
  extended bycom.germinus.easyconf.ComponentConfiguration

public class ComponentConfiguration
extends java.lang.Object

Contains the configuration of an EasyConf component including properties configuration and an object graph configuration.

Version:
$Revision: 1.9 $
Author:
Jorge Ferrer

Constructor Summary
ComponentConfiguration(java.lang.String componentName)
           
ComponentConfiguration(java.lang.String companyId, java.lang.String componentName)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.String getComponentName()
          Get the name of the component which is associated with this configuration
 java.lang.Object getConfigurationObject()
          Get an object which represents the configuration of the given component The object is populated using the digester rules defined in the file componentName.digesterRules.xml which must be found in the classpath (first it is searched in the context of the current thread and then in the context of the system classpath)
 ComponentProperties getProperties()
          Get a typed map of the properties associated with this component
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ComponentConfiguration

public ComponentConfiguration(java.lang.String componentName)

ComponentConfiguration

public ComponentConfiguration(java.lang.String companyId,
                              java.lang.String componentName)
Method Detail

getComponentName

public java.lang.String getComponentName()
Get the name of the component which is associated with this configuration


getConfigurationObject

public java.lang.Object getConfigurationObject()
Get an object which represents the configuration of the given component The object is populated using the digester rules defined in the file componentName.digesterRules.xml which must be found in the classpath (first it is searched in the context of the current thread and then in the context of the system classpath)

Throws:
ConfigurationException - if the object graph cannot be read

getProperties

public ComponentProperties getProperties()
Get a typed map of the properties associated with this component


equals

public boolean equals(java.lang.Object obj)

hashCode

public int hashCode()


Copyright © 2005 EasyConf team. All Rights Reserved.