|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.exolab.jms.config.ConfigurationManager
public class ConfigurationManager
The ConfigurationManager manages provides class methods for setting and
getting the configuration file. It should be set by the application main line
through setConfig(java.lang.String)
and subsequently accessed by other components
through getConfig()
.
Constructor Summary | |
---|---|
ConfigurationManager()
Deprecated. |
Method Summary | |
---|---|
static org.exolab.jms.config.Configuration |
getConfig()
Deprecated. Returns the configuration |
static org.exolab.jms.config.Connector |
getConnector()
Deprecated. This method relies on users knowing that the first connector is the one that will be used. |
static org.exolab.jms.config.Connector |
getConnector(org.exolab.jms.config.types.SchemeType scheme)
Deprecated. |
static void |
setConfig(org.exolab.jms.config.Configuration config)
Deprecated. Set the configuration |
static void |
setConfig(java.lang.String path)
Deprecated. Load the configuration file |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ConfigurationManager()
Method Detail |
---|
public static void setConfig(java.lang.String path) throws FileDoesNotExistException, ConfigurationFileException
path
- xml config file conforming to openjms.xsd schema
FileDoesNotExistException
- if the file does not exist
ConfigurationFileException
- if the file is not well-formedpublic static void setConfig(org.exolab.jms.config.Configuration config)
config
- the configurationpublic static org.exolab.jms.config.Configuration getConfig()
java.lang.IllegalStateException
- if the configuration has not been
initialisedpublic static org.exolab.jms.config.Connector getConnector(org.exolab.jms.config.types.SchemeType scheme)
scheme
- the connector scheme
java.lang.IllegalArgumentException
- if scheme is null
java.lang.IllegalStateException
- if the configuration is not initialisedpublic static org.exolab.jms.config.Connector getConnector()
java.lang.IllegalStateException
- if the configuration is not initialisedgetConnector(SchemeType)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |