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 classloader 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
Constructors -
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 and will be removed in a future version.static ClassLoader
Deprecated.Method should not be used and will be removed in a future version.
-
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 and will be removed in a future version. -
get_parent_cl
Deprecated.Method should not be used and will be removed in a future version.
-