net.sourceforge.acelogger.configuration
Interface ConfigurationLoader

All Known Implementing Classes:
BaseConfigurationLoader, JsonConfigurationLoader, PropertiesConfigurationLoader, XmlConfigurationLoader

public interface ConfigurationLoader

Loads the logging system configuration from an external source.

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

Method Summary
 void configureFrom(InputStream source)
          Configures the logging system from the data contained in the source stream.
 void configureFromMultipleSources(Collection<InputStream> sources)
          Configures the logging system from multiple sources.
 void configureFromMultipleSources(InputStream... sources)
          Configures the logging system from multiple sources.
 

Method Detail

configureFrom

void configureFrom(InputStream source)
Configures the logging system from the data contained in the source stream.

Parameters:
source - The source for the configuration data. Depending on the implementation this might be a file, url, etc.
Since:
1.0.0

configureFromMultipleSources

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.

Parameters:
sources - An array containing the various sources to be used during configuration.
See Also:
configureFrom(InputStream)

configureFromMultipleSources

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.

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


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