net.sourceforge.acelogger.configuration
Class BaseConfigurationLoader

java.lang.Object
  extended by net.sourceforge.acelogger.configuration.BaseConfigurationLoader
All Implemented Interfaces:
ConfigurationLoader
Direct Known Subclasses:
JsonConfigurationLoader, PropertiesConfigurationLoader, XmlConfigurationLoader

public abstract class BaseConfigurationLoader
extends Object
implements ConfigurationLoader

A base implementation for configuration loaders. Common methods for all loaders should be abstracted by this class.

Since:
1.0.0
Version:
1.0.0
Author:
Zardi (https://sourceforge.net/users/daniel_zardi)

Constructor Summary
BaseConfigurationLoader()
           
 
Method Summary
 void configureFromMultipleSources(Collection<InputStream> sources)
          Configures the logging system from multiple sources.
 void configureFromMultipleSources(InputStream... sources)
          Configures the logging system from multiple sources.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.sourceforge.acelogger.configuration.ConfigurationLoader
configureFrom
 

Constructor Detail

BaseConfigurationLoader

public BaseConfigurationLoader()
Method Detail

configureFromMultipleSources

public final void configureFromMultipleSources(InputStream... sources)
Configures the logging system from multiple sources. If two sources define configurations for the same identifier, the later will be used (ie. the configuration will be overwritten). This behavior makes possible configuration inheritance and refinement.

Specified by:
configureFromMultipleSources in interface ConfigurationLoader
Parameters:
sources - An array containing the various sources to be used during configuration.
See Also:
ConfigurationLoader.configureFrom(InputStream)

configureFromMultipleSources

public final void configureFromMultipleSources(Collection<InputStream> sources)
Configures the logging system from multiple sources. If two sources define configurations for the same identifier, the later will be used (ie. the configuration will be overwritten) based on the order returned by the collection's iterator. This behavior makes possible configuration inheritance and refinement.

Specified by:
configureFromMultipleSources in interface ConfigurationLoader
Parameters:
sources - A collection containing the various sources to be used during configuration.
See Also:
ConfigurationLoader.configureFrom(InputStream), Collection.iterator()


Copyright © 2007-2010 The AceLogger Team. All Rights Reserved.