Package com.netscape.cmscore.base
Class FileConfigStore
- java.lang.Object
-
- com.netscape.cmscore.base.ConfigStorage
-
- com.netscape.cmscore.base.FileConfigStore
-
public class FileConfigStore extends ConfigStorage
FileConfigStore: Extends PropConfigStore with methods to load/save from/to file for persistent storage. This is a configuration store agent who reads data from a file.- Version:
- $Revision$, $Date$
- See Also:
PropConfigStore
-
-
Constructor Summary
Constructors Constructor Description FileConfigStore(java.lang.String fileName)
Constructs a file configuration store.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
commit(IConfigStore config, boolean createBackup)
The original config file is copied to. . java.io.File
getFile()
void
load(IConfigStore config)
-
-
-
Constructor Detail
-
FileConfigStore
public FileConfigStore(java.lang.String fileName) throws java.lang.Exception
Constructs a file configuration store.- Parameters:
fileName
- file name- Throws:
EBaseException
- failed to create file configurationjava.lang.Exception
-
-
Method Detail
-
getFile
public java.io.File getFile()
-
load
public void load(IConfigStore config) throws java.lang.Exception
- Overrides:
load
in classConfigStorage
- Throws:
java.lang.Exception
-
commit
public void commit(IConfigStore config, boolean createBackup) throws EBaseException
The original config file is copied to. . Commits the current properties to the configuration file. - Overrides:
commit
in classConfigStorage
- Parameters:
backup
-- Throws:
EBaseException
-
-