Package org.apache.uima.fit.internal
Class ResourceManagerFactory
java.lang.Object
org.apache.uima.fit.internal.ResourceManagerFactory
INTERNAL API - Helper functions for dealing with resource managers and classloading
This API is experimental and is very likely to be removed or changed in future versions.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static interface
-
Method Summary
Modifier and TypeMethodDescriptionstatic org.apache.uima.resource.ResourceManager
static void
setResourceManagerCreator
(ResourceManagerFactory.ResourceManagerCreator resourceManagerCreator) Mind that returning a singleton resource manager fromResourceManagerFactory
is generally a bad idea because it gets destroyed on a regular basis.
-
Method Details
-
newResourceManager
public static org.apache.uima.resource.ResourceManager newResourceManager() throws org.apache.uima.resource.ResourceInitializationException- Throws:
org.apache.uima.resource.ResourceInitializationException
-
setResourceManagerCreator
public static void setResourceManagerCreator(ResourceManagerFactory.ResourceManagerCreator resourceManagerCreator) Mind that returning a singleton resource manager fromResourceManagerFactory
is generally a bad idea because it gets destroyed on a regular basis. For this reason, it is callednewResourceManager()
and notgetResourceManager()
. -
getResourceManagerCreator
-