/** * Loads the class with the specified name. For Java 2 callers, the * current thread's context class loader is preferred, falling back on the * system class loader of the caller when the current thread's context is not * set, or the caller is pre Java 2. * * @param name the name of the class * @return the resulting <code>Class</code> object * @exception ClassNotFoundException if the class was not found */ public static Class<?> loadClass( String name) throws ClassNotFoundException { return loadClass(name, null); }
/** * Loads the class with the specified name. For Java 2 callers, the * current thread's context class loader is preferred, falling back on the * system class loader of the caller when the current thread's context is not * set, or the caller is pre Java 2. * * @param name the name of the class * @return the resulting <code>Class</code> object * @exception ClassNotFoundException if the class was not found */ public static Class<?> loadClass( String name) throws ClassNotFoundException { return loadClass(name, null); }