* However, if overwrite is true, then it overwrites any manual changes
* on disk
*/
public synchronized void flush(boolean overwrite) throws ConfigException {
if(!overwrite && isFileChangedExternally()) {
throw new StaleWriteConfigException
("ConfigContext Flush failed: File Changed Externally");
}
// Before writing to the disk check if configcontext is valid
if (!isValidConfigContext()) {
// load the configcontext from file
refresh();
throw new StaleWriteConfigException
("Command Failed. Invalid ConfigContext because of concurrent Access. Please rerun the command");
}
// <addition> srini@sun.com server.xml verifier
//preChange(ConfigContextEvent.PRE_FLUSH_CHANGE);