|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--org.jwarp.service.configuration.AConfiguration
Base configuration class implementing the file configuration interface.
| Field Summary | |
protected boolean |
checkModification
Check for modification or not before accessing the config |
protected org.jdom.Document |
document
The JDOM document |
protected long |
lastModified
last modified date |
| Fields inherited from interface org.jwarp.service.configuration.IConfiguration |
ELEM_CONFIG |
| Constructor Summary | |
AConfiguration()
Creates a configuration. |
|
AConfiguration(boolean checkModification)
Creates a configuration. |
|
| Method Summary | |
org.jdom.Document |
getDocument()
Return the JDOM document of this configuration. |
org.jdom.Element |
getRootElement()
Return the JDOM root element of this configuration. |
abstract void |
initDocument()
Sets the JDOM document of this configuration. |
boolean |
isCheckingModification()
Returns true, if the Configuration is checked for modifications and reparsed if needed. |
abstract void |
reloadConfiguration()
Reloads the JDOM document of this configuration. |
void |
setCheckingModification(boolean checkModification)
Torn on/off if the Configuration should be checked for modifications and reparsed if needed. |
| Methods inherited from class java.lang.Object |
|
| Field Detail |
protected org.jdom.Document document
protected long lastModified
protected boolean checkModification
| Constructor Detail |
public AConfiguration()
throws ConfigurationException
public AConfiguration(boolean checkModification)
throws ConfigurationException
| Method Detail |
public abstract void initDocument()
throws ConfigurationException
public abstract void reloadConfiguration()
throws ConfigurationException
public org.jdom.Document getDocument()
throws ConfigurationException
getDocument in interface IConfiguration
public org.jdom.Element getRootElement()
throws ConfigurationException
getRootElement in interface IConfigurationpublic boolean isCheckingModification()
isCheckingModification in interface IConfigurationpublic void setCheckingModification(boolean checkModification)
setCheckingModification in interface IConfigurationcheckModification - If set to true, the modifications will be checked.
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||