|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectuk.ac.lancs.relate.gateways.services.config.Configuration
public class Configuration
Configuration which is read out of a text file. Each line of the file starts with a key (corresponds to the variable's name) followed by the value.
| Constructor Summary | |
|---|---|
Configuration(java.lang.String fileName)
Creates a new configuration which is read of a file with a given name. |
|
| Method Summary | |
|---|---|
int |
getInt(java.lang.String key)
Returns the value of a property with a given key as an integer. |
java.lang.String |
getString(java.lang.String key)
Returns the value of a property with a given key. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Configuration(java.lang.String fileName)
fileName - name of the configuration file| Method Detail |
|---|
public java.lang.String getString(java.lang.String key)
key - variable's name
public int getInt(java.lang.String key)
key - variable's name
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||