Package org.apache.uima.fit.util
Class LifeCycleUtil
java.lang.Object
org.apache.uima.fit.util.LifeCycleUtil
Helper methods to handle the life cycle of UIMA components.
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
close
(BaseCollectionReader aReader) Close a reader.static void
collectionProcessComplete
(AnalysisEngine... engines) Notify a set ofanalysis engines
that the collection process is complete.static void
Destroy a set ofresources
.static void
destroy
(ResourceManager aResMgr) Destroy a set ofresource manager
.
-
Method Details
-
collectionProcessComplete
public static void collectionProcessComplete(AnalysisEngine... engines) throws AnalysisEngineProcessException Notify a set ofanalysis engines
that the collection process is complete.- Parameters:
engines
- the engines to notify of completion- Throws:
AnalysisEngineProcessException
- if there was a problem in the engines reacting to completion
-
destroy
Destroy a set ofresource manager
.- Parameters:
aResMgr
- the resource manager to destroy
-
destroy
Destroy a set ofresources
.- Parameters:
resources
- the resources to destroy
-
close
Close a reader.- Parameters:
aReader
- the reader to close
-