|
||||||||||
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()
|
Method Summary | |
---|---|
static Configuration |
getConfig()
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(SchemeType scheme)
Returns the connector configuration for the supplied scheme |
static void |
setConfig(Configuration config)
Set the configuration |
static void |
setConfig(java.lang.String path)
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(Configuration config)
config
- the configurationpublic static Configuration getConfig()
java.lang.IllegalStateException
- if the configuration has not been
initialisedpublic static Connector getConnector(SchemeType scheme)
scheme
- the connector scheme
java.lang.IllegalArgumentException
- if scheme is null
java.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: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |