Package org.apache.uima.internal.util
Class Class_TCCL
java.lang.Object
org.apache.uima.internal.util.Class_TCCL
Utilities supporting a unified approach to loading classes,
incorporating the resource manager's class loader if available,
and making use of the Thread Context Class Loader (TCCL)
For backwards compatibility, if a class is not found using the
Thread Context Class Loader,
for classloading: try again using the
class loader for this class since that's what the previous impl did,
and some applications will break otherwise, with class-not-found.
for resourceloading: try again using the Classloader.getSystemClassLoader,
since that's what the previous impl did
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> Class
<T> static <T> Class
<T> static <T> Class
<T> forName
(String className, ResourceManager rm) static <T> Class
<T> forName
(String className, ResourceManager rm, boolean resolve) static ClassLoader
Deprecated.Method should not be used because if an extension classloader is set, the thread context classloader will be ignored.static ClassLoader
Deprecated.Method should not be used because if a context classloader is set, the fallback classloader is not considered.
-
Constructor Details
-
Class_TCCL
public Class_TCCL()
-
-
Method Details
-
forName
- Throws:
ClassNotFoundException
-
forName
public static <T> Class<T> forName(String className, ResourceManager rm) throws ClassNotFoundException - Throws:
ClassNotFoundException
-
forName
public static <T> Class<T> forName(String className, ResourceManager rm, boolean resolve) throws ClassNotFoundException - Throws:
ClassNotFoundException
-
forName
public static <T> Class<T> forName(String className, Map<String, Object> additionalParams) throws ClassNotFoundException- Throws:
ClassNotFoundException
-
get_cl
Deprecated.Method should not be used because if an extension classloader is set, the thread context classloader will be ignored. It will be removed in a future version.- To be removed in version:
- 4.0.0
-
get_parent_cl
Deprecated.Method should not be used because if a context classloader is set, the fallback classloader is not considered. It will be removed in a future version.- To be removed in version:
- 4.0.0
-