org.gcube.portlets.user.homelibrary.util.config.easyconf
Class AggregatedProperties

java.lang.Object
  extended by org.apache.commons.configuration.event.EventSource
      extended by org.apache.commons.configuration.AbstractConfiguration
          extended by org.apache.commons.configuration.CompositeConfiguration
              extended by org.gcube.portlets.user.homelibrary.util.config.easyconf.AggregatedProperties
All Implemented Interfaces:
Cloneable, 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, EVENT_ADD_PROPERTY, EVENT_CLEAR, EVENT_CLEAR_PROPERTY, EVENT_READ_PROPERTY, EVENT_SET_PROPERTY, START_TOKEN
 
Constructor Summary
AggregatedProperties(String companyId, String componentName)
           
 
Method Summary
 void addBaseFileName(String fileName)
           
 void addGlobalFileName(String fileName)
           
 String getComponentName()
           
 Object getProperty(String key)
          Look for the property in environment, global and base configuration, in this order
 boolean hasBaseConfiguration()
           
 List<String> loadedSources()
           
 
Methods inherited from class org.apache.commons.configuration.CompositeConfiguration
addConfiguration, addConfiguration, addPropertyDirect, clear, clearPropertyDirect, clone, containsKey, getConfiguration, getInMemoryConfiguration, getKeys, getKeys, getList, getNumberOfConfigurations, getSource, getStringArray, isEmpty, removeConfiguration, setDelimiterParsingDisabled, setListDelimiter
 
Methods inherited from class org.apache.commons.configuration.AbstractConfiguration
addErrorLogListener, addProperty, append, clearProperty, copy, createInterpolator, getBigDecimal, getBigDecimal, getBigInteger, getBigInteger, getBoolean, getBoolean, getBoolean, getByte, getByte, getByte, getDefaultListDelimiter, getDelimiter, getDouble, getDouble, getDouble, getFloat, getFloat, getFloat, getInt, getInt, getInteger, getInterpolator, getList, getListDelimiter, getLogger, getLong, getLong, getLong, getProperties, getProperties, getShort, getShort, getShort, getString, getString, getSubstitutor, interpolate, interpolate, interpolatedConfiguration, interpolateHelper, isDelimiterParsingDisabled, isScalarValue, isThrowExceptionOnMissing, resolveContainerStore, setDefaultListDelimiter, setDelimiter, setLogger, setProperty, setThrowExceptionOnMissing, subset
 
Methods inherited from class org.apache.commons.configuration.event.EventSource
addConfigurationListener, addErrorListener, clearConfigurationListeners, clearErrorListeners, createErrorEvent, createEvent, fireError, fireEvent, getConfigurationListeners, getErrorListeners, isDetailEvents, removeConfigurationListener, removeErrorListener, setDetailEvents
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AggregatedProperties

public AggregatedProperties(String companyId,
                            String componentName)
Method Detail

getProperty

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

Specified by:
getProperty in interface org.apache.commons.configuration.Configuration
Overrides:
getProperty in class org.apache.commons.configuration.CompositeConfiguration
Parameters:
key -
Returns:

addBaseFileName

public void addBaseFileName(String fileName)

addGlobalFileName

public void addGlobalFileName(String fileName)

loadedSources

public List<String> loadedSources()

hasBaseConfiguration

public boolean hasBaseConfiguration()

getComponentName

public String getComponentName()


Copyright © 2013. All Rights Reserved.