org.castor.jdo.util
Class ClassLoadingUtils

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

public final class ClassLoadingUtils
extends java.lang.Object

Common static methods for Castor JDO related to class loading.

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

Method Summary
static java.lang.Class loadClass(java.lang.ClassLoader classLoader, java.lang.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 java.lang.Class loadClass(java.lang.ClassLoader classLoader,
                                        java.lang.String classname)
                                 throws java.lang.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:
java.lang.ClassNotFoundException - If the given class can not be loaded.


Copyright © 2011. All Rights Reserved.