org.castor.jdo.util
Class ClassLoadingUtils

java.lang.Object
  extended by org.castor.jdo.util.ClassLoadingUtils

public final class ClassLoadingUtils
extends Object

Common static methods for Castor JDO related to class loading.

Since:
1.0 M2
Version:
$Revision: 8104 $ $Date$
Author:
Werner Guttmann

Method Summary
static Class<?> loadClass(ClassLoader classLoader, String classname)
          Loads a class with a given name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

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.


Copyright © 2010. All Rights Reserved.