public class Classes
extends java.lang.Object
Constructor and Description |
---|
Classes()
Deprecated.
will be private soon.
|
Modifier and Type | Method and Description |
---|---|
static java.lang.Class<?> |
getClass(java.lang.String className)
Returns Class.forName for
className using the current thread's class loader. |
static java.lang.Class<?> |
getClass(java.lang.String className,
java.lang.Class<?> callingClass)
Returns Class.forName for
className using the current thread's class loader. |
@Deprecated public Classes()
public static java.lang.Class<?> getClass(java.lang.String className) throws java.lang.ClassNotFoundException
className
using the current thread's class loader.
If the current thread does not have a class loader, falls back to the class loader for
Classes
.className
- Name of the class.java.lang.ClassNotFoundException
public static java.lang.Class<?> getClass(java.lang.String className, java.lang.Class<?> callingClass) throws java.lang.ClassNotFoundException
className
using the current thread's class loader.
If the current thread does not have a class loader, falls back to the class loader for the
passed-in class.className
- Name of the class.callingClass
- Class that is requesting a the classjava.lang.ClassNotFoundException