public class SingletonAnnotatorConfigImpl extends AnnotatorConfigurationImpl implements ClosePermitionGranter
| Modifier and Type | Field and Description |
|---|---|
protected Annotator |
instance |
protected Semaphore |
instanceMutex |
protected int |
instanceUsages |
constructor, constructorArgsapplicableForExperiment, couldBeCached, name| Constructor and Description |
|---|
SingletonAnnotatorConfigImpl(String annotatorName,
boolean couldBeCached,
Constructor<? extends Annotator> constructor,
Object[] constructorArgs,
ExperimentType applicableForExperiment) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
givePermissionToClose()
Returns true if the observed
Closeable is allowed to close
itself. |
protected Annotator |
loadAnnotator() |
getAnnotator, toStringcompareTo, couldBeCached, getExperimentType, getName, isApplicableForExperiment, setCouldBeCached, setNameclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcouldBeCached, getExperimentType, getName, isApplicableForExperiment, setCouldBeCached, setNamecompareToprotected Annotator instance
protected int instanceUsages
protected Semaphore instanceMutex
public SingletonAnnotatorConfigImpl(String annotatorName, boolean couldBeCached, Constructor<? extends Annotator> constructor, Object[] constructorArgs, ExperimentType applicableForExperiment)
protected Annotator loadAnnotator() throws Exception
loadAnnotator in class AnnotatorConfigurationImplExceptionpublic boolean givePermissionToClose()
ClosePermitionGranterCloseable is allowed to close
itself.givePermissionToClose in interface ClosePermitionGranterCopyright © 2014–2017. All rights reserved.