|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.tubo.configuration.reader.AbstractConfigurationReader
public abstract class AbstractConfigurationReader
Created: Jun 23, 2005 6:36:17 AM Last Modification Date: $Date: 2006-10-19 12:11:35 -0300 (Thu, 19 Oct 2006) $
Field Summary | |
---|---|
static java.lang.String |
RCS_ID
|
Constructor Summary | |
---|---|
AbstractConfigurationReader()
|
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. |
protected Configuration |
createEmptyConfigurationObject()
|
java.lang.ClassLoader |
getReaderClassLoader()
|
Configuration |
load(java.lang.String resource)
Create a new Configuration Object based on resource configuration. |
protected abstract Configuration |
parse(java.io.Reader reader,
Configuration config)
Parse resource and fill configuration object. |
protected Configuration |
recursiveIncludeAppend(Configuration config)
|
void |
setReaderClassLoader(java.lang.ClassLoader classLoader)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String RCS_ID
Constructor Detail |
---|
public AbstractConfigurationReader()
Method Detail |
---|
public java.lang.ClassLoader getReaderClassLoader()
public void setReaderClassLoader(java.lang.ClassLoader classLoader)
classLoader
- public Configuration load(java.lang.String resource) throws TuboConfigurationException
load
in interface ConfigurationReader
resource
- Configuration Resource
TuboConfigurationException
- If something occurs.public Configuration append(java.lang.String resource, Configuration config) throws TuboConfigurationException
append
in interface ConfigurationReader
resource
- A class loader resource. see ClassLoader.getResource()
TuboConfigurationException
public Configuration append(java.net.URL url, Configuration config) throws TuboConfigurationException
append
in interface ConfigurationReader
url
- Link to configuration data
TuboConfigurationException
public Configuration append(java.io.Reader reader, Configuration config) throws TuboConfigurationException
append
in interface ConfigurationReader
reader
- config
-
TuboConfigurationException
protected Configuration createEmptyConfigurationObject()
protected Configuration recursiveIncludeAppend(Configuration config) throws TuboConfigurationException
config
-
TuboConfigurationException
protected abstract Configuration parse(java.io.Reader reader, Configuration config) throws TuboConfigurationException
reader
- Resource readerconfig
- Configuration Repository
TuboConfigurationException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |