com.anthonyeden.lib.config
Interface ConfigurationFactory

All Known Implementing Classes:
SAXConfigurationFactory

public interface ConfigurationFactory

Standard interface which is used to retrieve a Configuration from an InputStream or Reader.

Since:
2.0
Author:
Anthony Eden

Method Summary
 Configuration getConfiguration(java.lang.String id, java.io.InputStream in)
          Get the root Configuration object from the specified InputStream.
 Configuration getConfiguration(java.lang.String id, java.io.Reader in)
          Get the root Configuration object from the specified InputStream.
 

Method Detail

getConfiguration

public Configuration getConfiguration(java.lang.String id,
                                      java.io.InputStream in)
                               throws ConfigurationException
Get the root Configuration object from the specified InputStream.

Parameters:
id - The id of the configuration (file path, URL, etc)
in - The InputStream
Returns:
The Configuration object
Throws:
ConfigurationException

getConfiguration

public Configuration getConfiguration(java.lang.String id,
                                      java.io.Reader in)
                               throws ConfigurationException
Get the root Configuration object from the specified InputStream.

Parameters:
id - The id of the configuration (file path, URL, etc)
in - The InputStream
Returns:
The Configuration object
Throws:
ConfigurationException


Copyright (c) 2000-2003 Anthony Eden. All Rights Reserved.