Package org.apache.uima.fit.internal
Class ClassLoaderUtils
java.lang.Object
org.apache.uima.fit.internal.ClassLoaderUtils
Deprecated.
INTERNAL API - Helper functions to obtain a suitable classloader.
- To be removed in version:
- 4.0.0
-
Method Summary
Modifier and TypeMethodDescriptionstatic ClassLoaderDeprecated.Looks up a suitable classloader in the following order: TheUimaContextin theUimaContextHolderof the current thread(if any) The current thread-context classloader (if any) The classloader through which uimaFIT (i.e. this class) was loaded. For backwards compatibility then delegates toClassUtils.getDefaultClassLoader()static ClassLoaderfindClassloader(ResourceManager aResMgr) Deprecated.Looks up a suitable classloader in the following order: The extension classloader of the givenResourceManagerSeefindClassloader()static ClassLoaderfindClassloader(UimaContext aContext) Deprecated.Looks up a suitable classloader in the following order: The extension classloader of theResourceManagerassociated with the givenUimaContext(if any) SeefindClassloader(ResourceManager)
-
Method Details
-
findClassloader
Deprecated.Looks up a suitable classloader in the following order:- The
UimaContextin theUimaContextHolderof the current thread(if any) - The current thread-context classloader (if any)
- The classloader through which uimaFIT (i.e. this class) was loaded.
- For backwards compatibility then delegates to
ClassUtils.getDefaultClassLoader()
- Returns:
- a classloader or
nullif no suitable classloader could be found.
- The
-
findClassloader
Deprecated.Looks up a suitable classloader in the following order:- The extension classloader of the given
ResourceManager - See
findClassloader()
- Returns:
- a classloader or
nullif no suitable classloader could be found.
- The extension classloader of the given
-
findClassloader
Deprecated.Looks up a suitable classloader in the following order:- The extension classloader of the
ResourceManagerassociated with the givenUimaContext(if any) - See
findClassloader(ResourceManager)
- Returns:
- a classloader or
nullif no suitable classloader could be found.
- The extension classloader of the
-
ClassLoaderUtilsinstead.