public class SingletonDatasetConfigImpl extends DatasetConfigurationImpl implements ClosePermitionGranter
| Modifier and Type | Field and Description |
|---|---|
protected Dataset |
instance |
protected Semaphore |
instanceMutex |
protected int |
instanceUsages |
constructor, constructorArgsentityCheckerManager, globalRetrieverapplicableForExperiment, couldBeCached, name| Constructor and Description |
|---|
SingletonDatasetConfigImpl(String annotatorName,
boolean couldBeCached,
Constructor<? extends Dataset> constructor,
Object[] constructorArgs,
ExperimentType applicableForExperiment,
EntityCheckerManager entityCheckerManager,
SameAsRetriever globalRetriever) |
| Modifier and Type | Method and Description |
|---|---|
protected Dataset |
getPreparedDataset() |
boolean |
givePermissionToClose()
Returns true if the observed
Closeable is allowed to close
itself. |
loadDataset, toStringgetDatasetcompareTo, couldBeCached, getExperimentType, getName, isApplicableForExperiment, setCouldBeCached, setNameclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcouldBeCached, getExperimentType, getName, isApplicableForExperiment, setCouldBeCached, setNamecompareToprotected Dataset instance
protected int instanceUsages
protected Semaphore instanceMutex
public SingletonDatasetConfigImpl(String annotatorName, boolean couldBeCached, Constructor<? extends Dataset> constructor, Object[] constructorArgs, ExperimentType applicableForExperiment, EntityCheckerManager entityCheckerManager, SameAsRetriever globalRetriever)
protected Dataset getPreparedDataset() throws Exception
getPreparedDataset in class AbstractDatasetConfigurationExceptionpublic boolean givePermissionToClose()
ClosePermitionGranterCloseable is allowed to close
itself.givePermissionToClose in interface ClosePermitionGranterCopyright © 2014–2017. All rights reserved.