org.tubo.configuration.reader
Interface ConfigurationReader

All Known Implementing Classes:
AbstractConfigurationReader, XMLDigesterConfigurationReader

public interface ConfigurationReader

Created: Jun 23, 2005 6:31:20 AM Last Modification Date: $Date: 2006-10-19 12:11:35 -0300 (Thu, 19 Oct 2006) $

Version:
$Revision: 17 $
Author:
jvlio (jvlio@users.sourceforge.net)

Field Summary
static java.lang.String RCS_ID
           
 
Method Summary
 Configuration append(java.io.Reader reader, Configuration config)
          This method append configuration data stored in reader object to config object, replacing duplicated items.
 Configuration append(java.lang.String resource, Configuration config)
          This method append configuration data stored on resource object to config object, replacing duplicated items.
 Configuration append(java.net.URL url, Configuration config)
          This method append configuration data linked by URL to config object, replacing duplicated items.
 Configuration load(java.lang.String resource)
          Create a new Configuration Object based on resource configuration.
 

Field Detail

RCS_ID

static final java.lang.String RCS_ID
See Also:
Constant Field Values
Method Detail

load

Configuration load(java.lang.String resource)
                   throws TuboConfigurationException
Create a new Configuration Object based on resource configuration.

Parameters:
resource - Configuration Resource
Returns:
A new configuration
Throws:
TuboConfigurationException - If something occurs.

append

Configuration append(java.lang.String resource,
                     Configuration config)
                     throws TuboConfigurationException
This method append configuration data stored on resource object to config object, replacing duplicated items.

Parameters:
resource - A class loader resource. see ClassLoader.getResource()
Returns:
config object with resource data append.
Throws:
TuboConfigurationException

append

Configuration append(java.net.URL url,
                     Configuration config)
                     throws TuboConfigurationException
This method append configuration data linked by URL to config object, replacing duplicated items.

Parameters:
url - Link to configuration data
Returns:
config object with resource data append.
Throws:
TuboConfigurationException

append

Configuration append(java.io.Reader reader,
                     Configuration config)
                     throws TuboConfigurationException
This method append configuration data stored in reader object to config object, replacing duplicated items.

Parameters:
reader -
config -
Returns:
Throws:
TuboConfigurationException


Copyright © 2004-2007 Tubo. All Rights Reserved.