public interface IDatapoolFactory
IDatapool and IDatapoolIterator objects.
Test scripts by default use managed datapools that share the
datapool and iterator instance across multiple scripts.| Modifier and Type | Method and Description |
|---|---|
void |
close(IDatapoolIterator iterator)
Return the iterator to the factory so that it can be properly
destroyed.
|
IDatapool |
load(java.io.File dpFile,
boolean sharedInstance)
Load the datapool from the specified file.
|
IDatapoolIterator |
open(IDatapool datapool,
java.lang.String iteratorClassName)
Return an iterator instance of the supplied iterator class.
|
void |
unload(IDatapool datapool)
Removes a reference to an instance of a datapool.
|
IDatapool load(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)IDatapoolIterator open(IDatapool datapool, java.lang.String iteratorClassName)
datapool - The datapool instance being iterated over.close(IDatapoolIterator)void close(IDatapoolIterator iterator)
iterator - The iterator being freed.open(IDatapool,String)