com.swabunga.spell.engine

Class PropertyConfiguration

public class PropertyConfiguration extends Configuration

Implementation class to read the properties controlling the spell engine. The properties are read form the configuration.properties file.

Author: aim4min

Field Summary
URLfilename
The name of the file containing spell engine properties
Propertiesprop
The persistent set of properties supported by the spell engine
Constructor Summary
PropertyConfiguration()
Constructs and loads spell engine properties configuration.
Method Summary
booleangetBoolean(String key)
intgetInteger(String key)
voidsave()
Writes the property list (key and element pairs) in the PropertyConfiguration file.
voidsetBoolean(String key, boolean value)
voidsetInteger(String key, int value)

Field Detail

filename

public URL filename
The name of the file containing spell engine properties

prop

public Properties prop
The persistent set of properties supported by the spell engine

Constructor Detail

PropertyConfiguration

public PropertyConfiguration()
Constructs and loads spell engine properties configuration.

Method Detail

getBoolean

public boolean getBoolean(String key)

See Also: getBoolean

getInteger

public int getInteger(String key)

See Also: getInteger

save

public void save()
Writes the property list (key and element pairs) in the PropertyConfiguration file.

setBoolean

public void setBoolean(String key, boolean value)

See Also: Configuration

setInteger

public void setInteger(String key, int value)

See Also: Configuration