org.exolab.jms.config
Class ConfigurationLoader
java.lang.Object
|
+--org.exolab.jms.config.ConfigurationLoader
- public class ConfigurationLoader
- extends java.lang.Object
The ConfigurationLoader loads a Configuration
document and populates
unset items with those provided by DefaultConfiguration
.
- Version:
- $Revision: 1.3 $ $Date: 2005/10/20 14:13:25 $
- Author:
- Tim Anderson
- See Also:
Configuration
Method Summary |
Configuration |
load(Configuration config)
Loads unpopulated elements in the supplied configuration with default
values. |
Configuration |
load(java.lang.String path)
Loads the configuration information from the specified file. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConfigurationLoader
public ConfigurationLoader()
- Construct a new
ConfigurationLoader
.
load
public Configuration load(java.lang.String path)
throws java.io.IOException,
org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException
- Loads the configuration information from the specified file. Unpopulated
configuration elements will be set to those provided by
DefaultConfiguration
.
- Parameters:
path
- the path to the file- Returns:
- the configuration
- Throws:
java.io.IOException
- for any I/O errororg.exolab.castor.xml.MarshalException
- if there is an error during unmarshallingorg.exolab.castor.xml.ValidationException
- if there is a validation error
load
public Configuration load(Configuration config)
throws java.io.IOException,
org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException
- Loads unpopulated elements in the supplied configuration with default
values. The default values are provided by
DefaultConfiguration
.
- Parameters:
config
- the configuration- Returns:
- the configuration, with unpopulated elements set to the defaults
- Throws:
java.io.IOException
- for any I/O errororg.exolab.castor.xml.MarshalException
- if there is an error during unmarshallingorg.exolab.castor.xml.ValidationException
- if there is a validation error
Copyright © 1999-2007 The OpenJMS Group. All Rights Reserved.