public class ConfigurationFile extends Object
| Constructor and Description |
|---|
ConfigurationFile(File configurationDir,
String rawName,
String name,
boolean persistOriginal)
Creates a new ConfigurationFile.
|
| Modifier and Type | Method and Description |
|---|---|
File |
getBootFile()
Gets the file from which boot operations should be parsed.
|
void |
resetBootFile(boolean reloadUsingLast)
Reset so the next call to
getBootFile() will re-determine the appropriate file to use for
parsing boot operations. |
public ConfigurationFile(File configurationDir, String rawName, String name, boolean persistOriginal)
configurationDir - directory in which configuration files are stored. Cannot be null and must exist
and be a directoryrawName - default name for configuration files of the type handled by this object.
Cannot be null or an empty stringname - user provided name of the configuration file to usepersistOriginal - true if configuration modifications should be persisted back to the main
configuration file; false if they should only be persisted
to the configuration history directorypublic void resetBootFile(boolean reloadUsingLast)
getBootFile() will re-determine the appropriate file to use for
parsing boot operations.reloadUsingLast - true if the next call to getBootFile() should use the last file from
the history. Only relevant if this object is not persisting changes
back to the original source filepublic File getBootFile()
nullCopyright © 2015 JBoss by Red Hat. All rights reserved.