Package org.castor.jdo.util
Class ClassLoadingUtils
java.lang.Object
org.castor.jdo.util.ClassLoadingUtils
Common static methods for Castor JDO related to class loading.
- Since:
- 1.0 M2
- Version:
- $Revision: 8104 $ $Date$
- Author:
- Werner Guttmann
-
Method Summary
Modifier and TypeMethodDescriptionstatic Class<?>
loadClass
(ClassLoader classLoader, String classname) Loads a class with a given name.
-
Method Details
-
loadClass
public static Class<?> loadClass(ClassLoader classLoader, String classname) throws ClassNotFoundException Loads a class with a given name.- Parameters:
classLoader
- The class loader to use; null if the default class loader should be used.classname
- Name of the class to be loaded.- Returns:
- The class loaded as specified by the class name.
- Throws:
ClassNotFoundException
- If the given class can not be loaded.
-