com.germinus.easyconf
Class AggregatedProperties

java.lang.Object
  extended byorg.apache.commons.configuration.AbstractConfiguration
      extended byorg.apache.commons.configuration.CompositeConfiguration
          extended bycom.germinus.easyconf.AggregatedProperties
All Implemented Interfaces:
org.apache.commons.configuration.Configuration

public class AggregatedProperties
extends org.apache.commons.configuration.CompositeConfiguration

Provides configuration properties from several sources making distintion from:

It also knows the source the a property to offer user information.

Author:
jferrer

Field Summary
 
Fields inherited from class org.apache.commons.configuration.AbstractConfiguration
END_TOKEN, START_TOKEN
 
Constructor Summary
AggregatedProperties(java.lang.String companyId, java.lang.String componentName)
           
 
Method Summary
 void addBaseFileName(java.lang.String fileName)
           
 void addGlobalFileName(java.lang.String fileName)
           
 java.lang.String getComponentName()
           
 java.lang.Object getProperty(java.lang.String key)
          Look for the property in environment, global and base configuration, in this order
 boolean hasBaseConfiguration()
           
 java.util.List loadedSources()
           
 
Methods inherited from class org.apache.commons.configuration.CompositeConfiguration
addConfiguration, addPropertyDirect, clear, clearProperty, containsKey, getConfiguration, getInMemoryConfiguration, getKeys, getKeys, getList, getNumberOfConfigurations, getStringArray, isEmpty, removeConfiguration
 
Methods inherited from class org.apache.commons.configuration.AbstractConfiguration
addProperty, getBigDecimal, getBigDecimal, getBigInteger, getBigInteger, getBoolean, getBoolean, getBoolean, getByte, getByte, getByte, getDelimiter, getDouble, getDouble, getDouble, getFloat, getFloat, getFloat, getInt, getInt, getInteger, getList, getLong, getLong, getLong, getProperties, getProperties, getShort, getShort, getShort, getString, getString, interpolate, interpolateHelper, isThrowExceptionOnMissing, resolveContainerStore, setDelimiter, setProperty, setThrowExceptionOnMissing, subset
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AggregatedProperties

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

getProperty

public java.lang.Object getProperty(java.lang.String key)
Look for the property in environment, global and base configuration, in this order

Parameters:
key -
Returns:

addBaseFileName

public void addBaseFileName(java.lang.String fileName)

addGlobalFileName

public void addGlobalFileName(java.lang.String fileName)

loadedSources

public java.util.List loadedSources()

hasBaseConfiguration

public boolean hasBaseConfiguration()

getComponentName

public java.lang.String getComponentName()


Copyright © 2005 EasyConf team. All Rights Reserved.