net.sourceforge.acelogger.configuration
Class BaseConfigurationLoader
java.lang.Object
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)
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BaseConfigurationLoader
public BaseConfigurationLoader()
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.