|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.exolab.jms.config.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 Configuration |
getConfig()
Deprecated. Returns the configuration |
static Connector |
getConnector()
Deprecated. This method relies on users knowing that the first connector is the one that will be used. |
static Connector |
getConnector(org.exolab.jms.config.types.SchemeType scheme)
Deprecated. |
static void |
setConfig(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 schemaFileDoesNotExistException
- if the file does not existConfigurationFileException
- if the file is not well-formedpublic static void setConfig(Configuration config)
config
- the configurationpublic static Configuration getConfig()
java.lang.IllegalStateException
- if the configuration has not been
initialisedpublic static Connector getConnector(org.exolab.jms.config.types.SchemeType scheme)
scheme
- the connector schemejava.lang.IllegalArgumentException
- if scheme is nulljava.lang.IllegalStateException
- if the configuration is not initialisedpublic static Connector getConnector()
java.lang.IllegalStateException
- if the configuration is not initialisedgetConnector(SchemeType)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |