public final class ClassLoaderUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static ClassLoader |
findClassloader()
Looks up a suitable classloader in the following order:
The
UimaContext in the UimaContextHolder of the current thread(if any)
The current thread-context classloader (if any)
The classloader through which uimaFIT (i.e. |
static ClassLoader |
findClassloader(ResourceManager aResMgr)
Looks up a suitable classloader in the following order:
The extension classloader of the given
ResourceManager
See findClassloader()
|
static ClassLoader |
findClassloader(UimaContext aContext)
Looks up a suitable classloader in the following order:
The extension classloader of the
ResourceManager associated with the given
UimaContext (if any)
See findClassloader(ResourceManager)
|
public static ClassLoader findClassloader()
UimaContext in the UimaContextHolder of the current thread(if any)ClassUtils.getDefaultClassLoader()null if no suitable classloader could be found.public static ClassLoader findClassloader(ResourceManager aResMgr)
ResourceManagerfindClassloader()null if no suitable classloader could be found.public static ClassLoader findClassloader(UimaContext aContext)
ResourceManager associated with the given
UimaContext (if any)findClassloader(ResourceManager)null if no suitable classloader could be found.Copyright © 2012–2021 The Apache Software Foundation. All rights reserved.