|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.fosstrak.llrp.adaptor.config.ConfigurationLoader
public class ConfigurationLoader
The ConfigurationLoader
acts as a gateway to the configuration file. it
tries to mask away the structure of the configuration file by providing
prototypes for the adaptors and their readers. it provides reading and writing
of configuration files.
Constructor Summary | |
---|---|
ConfigurationLoader()
creates a configuration loader. |
Method Summary | |
---|---|
java.util.List<AdaptorConfiguration> |
getConfiguration(java.lang.String propertiesFile)
reads a configuration file and delivers the content in a prototype-form. |
void |
writeConfiguration(java.util.List<AdaptorConfiguration> configurations,
java.lang.String propertiesFile)
writes the configuration given by a list of prototypes to the configuration file. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ConfigurationLoader()
Method Detail |
---|
public java.util.List<AdaptorConfiguration> getConfiguration(java.lang.String propertiesFile) throws LLRPRuntimeException
propertiesFile
- the properties file to read.
LLRPRuntimeException
- whenever the configuration file could not be read.public void writeConfiguration(java.util.List<AdaptorConfiguration> configurations, java.lang.String propertiesFile) throws LLRPRuntimeException
configurations
- the prototypes to be written to the config-file.propertiesFile
- the properties file where to store.
LLRPRuntimeException
- whenever the file could not be written.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |