public final class ReflectionUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static Class<?> |
classForName(String clazzName)
Load and initialize (or return, if already defined) a given class using context
class loader.
|
static Class<?> |
classForName(String clazzName,
boolean logWarning)
Load and initialize (or return, if already defined) a given class using context
class loader.
|
public static Class<?> classForName(String clazzName) throws ClassNotFoundException
ClassNotFoundException is thrown
and logged.ClassNotFoundExceptionpublic static Class<?> classForName(String clazzName, boolean logWarning) throws ClassNotFoundException
clazzName - class name to loadlogWarning - if true, a warning will be logged if class cannot be foundClassNotFoundException