com.ls.lars.communication
Class ConfigLoader
java.lang.Object
|
+--com.ls.util.xml.XMLConfigLoader
|
+--com.ls.lars.communication.ConfigLoader
- public final class ConfigLoader
- extends XMLConfigLoader
This class loads a config file into a map.
- Version:
- $Revision: 1.6 $
- Author:
- Last modified by $Author: MFehrenbach $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConfigLoader
public ConfigLoader()
- the default constructor
ConfigLoader
public ConfigLoader(String protocol)
- constructor
- Parameters:
protocol
- specifies the protocol for witch this loader will be created
ConfigLoader
public ConfigLoader(String protocol,
IXMLHandler iXMLHandler)
- constructor
- Parameters:
protocol
- specifies the protocol for witch this loader will be creatediXMLHandler
- the handler used by the loader
getMessageList
public List getMessageList(Map config,
String receiverName)
- Converts the config file map into a list of messages.
- Parameters:
config
- the configHash from parseFile(configFileNames)
.receiverName
- the name of the receiving agent of all those messages- Returns:
- List of messages. If the configHash is null, the message list will be emtpy.