com.xenonsoft.bridgetown.resources
Class AbstractConfigLoader

java.lang.Object
  extended bycom.xenonsoft.bridgetown.resources.AbstractConfigLoader
All Implemented Interfaces:
IConfigLoader, java.io.Serializable
Direct Known Subclasses:
LegacyXMLConfigLoader, XMLConfigLoader

public abstract class AbstractConfigLoader
extends java.lang.Object
implements IConfigLoader, java.io.Serializable

An abstract class that defines many of the configuration loader methods. Subclassers need to define the load() method.

CAUTION: THIS CLASS MIGHT BE REFACTORED or REDESIGNED along with the superclasses.

Version:
$Id: AbstractConfigLoader.java,v 1.6 2005/03/17 02:38:02 peter_pilgrim Exp $
Author:
Peter Pilgrim, 07-Aug-2004
See Also:
Serialized Form

Field Summary
protected  java.io.File file
          the file
protected  java.io.InputStream inputStream
          The input stream
protected  java.lang.String uri
          the url
 
Constructor Summary
AbstractConfigLoader()
          Default constructor
 
Method Summary
 AssemblyConfig load(java.io.File file)
          Loads the configuration as a system file
 AssemblyConfig load(java.io.InputStream inputStream)
          Loads the configuration as an input stream
 AssemblyConfig load(java.lang.String uri)
          Loads the configuration as a URI path
 void setFile(java.io.File file)
          Sets the system file
 void setInputStream(java.io.InputStream inputStream)
          Sets the input stream
 void setUri(java.lang.String uri)
          Sets the URI path
 java.lang.String toString()
          Dumps the human readable debuggable string
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.xenonsoft.bridgetown.resources.IConfigLoader
load
 

Field Detail

inputStream

protected transient java.io.InputStream inputStream
The input stream


file

protected transient java.io.File file
the file


uri

protected java.lang.String uri
the url

Constructor Detail

AbstractConfigLoader

public AbstractConfigLoader()
Default constructor

Method Detail

setFile

public void setFile(java.io.File file)
Sets the system file

Specified by:
setFile in interface IConfigLoader
Parameters:
file -
Returns:
See Also:
IConfigLoader.setFile(java.io.File)

setInputStream

public void setInputStream(java.io.InputStream inputStream)
Sets the input stream

Specified by:
setInputStream in interface IConfigLoader
Parameters:
inputStream -
Returns:
See Also:
IConfigLoader.setInputStream(java.io.InputStream)

setUri

public void setUri(java.lang.String uri)
Sets the URI path

Specified by:
setUri in interface IConfigLoader
Parameters:
uri -
Returns:
See Also:
IConfigLoader.setUri(java.lang.String)

load

public AssemblyConfig load(java.lang.String uri)
Loads the configuration as a URI path

Specified by:
load in interface IConfigLoader
Parameters:
uri -
Returns:
root assembly configuration
See Also:
IConfigLoader.load(java.lang.String)

load

public AssemblyConfig load(java.io.File file)
Loads the configuration as a system file

Specified by:
load in interface IConfigLoader
Parameters:
file -
Returns:
root assembly configuration
See Also:
IConfigLoader.load(java.io.File)

load

public AssemblyConfig load(java.io.InputStream inputStream)
Loads the configuration as an input stream

Specified by:
load in interface IConfigLoader
Parameters:
inputStream -
Returns:
root assembly configuration
See Also:
IConfigLoader.load(java.io.InputStream)

toString

public java.lang.String toString()
Dumps the human readable debuggable string

Returns:
the debug string
See Also:
Object.toString()


Copyright © 2005 XeNoNSoFT.com. All Rights Reserved.