public final class ClassLoadingUtils extends Object
Modifier and Type | Method and Description |
---|---|
static Class<?> |
loadClass(ClassLoader classLoader,
String classname)
Loads a class with a given name.
|
public static Class<?> loadClass(ClassLoader classLoader, String classname) throws ClassNotFoundException
classLoader
- The class loader to use; null if the default class loader
should be used.classname
- Name of the class to be loaded.ClassNotFoundException
- If the given class can not be loaded.Copyright © 2014. All rights reserved.