public class ClassUtils extends Object
| Modifier and Type | Method and Description | 
|---|---|
| static Class<?> | forName(Class<?> contextClass,
       String className)Loads a class using the class loader. | 
| static Class<?> | forName(ClassLoader classLoader,
       String className)Loads a class using the class loader. | 
| static Class<?> | forName(String className)Loads a class using the class loader. | 
public static Class<?> forName(String className) throws ClassNotFoundException
className - The name of the class to load.ClassNotFoundExceptionpublic static Class<?> forName(Class<?> contextClass, String className) throws ClassNotFoundException
contextClass - The name of a context class to use.className - The name of the class to loadClassNotFoundExceptionpublic static Class<?> forName(ClassLoader classLoader, String className) throws ClassNotFoundException
classLoader - The classloader to use.className - The name of the class to loadClassNotFoundExceptionCopyright © 2009–2020 The Apache Software Foundation. All rights reserved.