public interface IDatapoolFactory
IDatapool
objects. This interface supports sharing
of editable datapools.Modifier and Type | Method and Description |
---|---|
IDatapool |
constructDatapool()
Constructs and returns an empty IDataPool
|
IDatapool |
loadForEdit(java.io.File dpFile,
boolean sharedInstance)
Load the datapool from the specified file.
|
void |
save(IDatapool datapool)
Persists the specified instance of a datapool.
|
void |
saveAs(IDatapool datapool,
java.io.File dpFile)
Persists the specified instance of a datapool to the
specified file.
|
void |
unload(IDatapool datapool)
Removes a reference to an instance of a datapool.
|
IDatapool loadForEdit(java.io.File dpFile, boolean sharedInstance)
sharedInstance
is requested then the cache of
other datapools that have been opened is checked for an
existing copy of the datapool. Note that modifying a shared
instance of the datapool may effect other uses of the datapool
and should only be done in a confined execution environment.dpFile
- The datapool file name.sharedInstance
- Available for sharing instances of
the datapool, which can save significantly
on datapool loading overhead.unload(IDatapool)
void unload(IDatapool datapool)
datapool
- The datapool instance being unloaded.#load(java.io.File,boolean)
void save(IDatapool datapool)
saveAs
method
should be used to save the file.datapool
- The datapool instance being saved.#load(java.io.File,boolean)
,
unload(IDatapool)
,
saveAs(IDatapool,java.io.File)
void saveAs(IDatapool datapool, java.io.File dpFile)
datapool
- The datapool instance being saved.dpFile
- The file to which the datapool is to be saved.#load(java.io.File,boolean)
,
unload(IDatapool)
,
save(IDatapool)
IDatapool constructDatapool()