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 voidclose(BaseCollectionReader aReader) Close a reader.static voidcollectionProcessComplete(AnalysisEngine... engines) Notify a set ofanalysis enginesthat the collection process is complete.static voidDestroy a set ofresources.static voiddestroy(ResourceManager aResMgr) Destroy a set ofresource manager.
-
Method Details
-
collectionProcessComplete
public static void collectionProcessComplete(AnalysisEngine... engines) throws AnalysisEngineProcessException Notify a set ofanalysis enginesthat 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
-