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.ClassNotFoundException
public 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 loadClassNotFoundException
public static Class<?> forName(ClassLoader classLoader, String className) throws ClassNotFoundException
classLoader
- The classloader to use.className
- The name of the class to loadClassNotFoundException
Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.