|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.exolab.jms.config.ConfigurationReader
public final class ConfigurationReader
The ConfigurationReader reads a Configuration
document and populates
unset items with those provided by DefaultConfiguration
.
Configuration
Method Summary | |
---|---|
static org.exolab.jms.config.Configuration |
read(java.io.InputStream stream)
Loads the configuration from a stream. |
static org.exolab.jms.config.Configuration |
read(java.lang.String path)
Loads the configuration information from the specified file. |
static org.exolab.jms.config.Configuration |
setDefaults(org.exolab.jms.config.Configuration config)
Sets unpopulated elements in the supplied configuration with default values. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static org.exolab.jms.config.Configuration read(java.lang.String path) throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
DefaultConfiguration
.
path
- the path to the file
java.io.IOException
- for any I/O error
org.exolab.castor.xml.MarshalException
- if there is an error during unmarshalling
org.exolab.castor.xml.ValidationException
- if there is a validation errorpublic static org.exolab.jms.config.Configuration read(java.io.InputStream stream) throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
DefaultConfiguration
.
stream
- the stream to read from
java.io.IOException
- for any I/O error
org.exolab.castor.xml.MarshalException
- if there is an error during unmarshalling
org.exolab.castor.xml.ValidationException
- if there is a validation errorpublic static org.exolab.jms.config.Configuration setDefaults(org.exolab.jms.config.Configuration config) throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
DefaultConfiguration
.
config
- the configuration
java.io.IOException
- for any I/O error
org.exolab.castor.xml.MarshalException
- if there is an error during unmarshalling
org.exolab.castor.xml.ValidationException
- if there is a validation error
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |