Java Class Load classForName(String className, ClassLoader classLoader)

Here you can find the source of classForName(String className, ClassLoader classLoader)

Description

returns Class.forName(className, true, classLoader).

License

Apache License

Declaration

public static Class<?> classForName(String className, ClassLoader classLoader) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

public class Main {
    /**/*w w w  .  j  a v a  2  s  . com*/
     * returns Class.forName(className, true, classLoader). <br>
     * Throws a RuntimeExcepiton if the class is not found.
     *
     * @see {@link Class#forName(String, boolean, ClassLoader)
     */
    public static Class<?> classForName(String className, ClassLoader classLoader) {
        try {
            return Class.forName(className, true, classLoader);
        } catch (ClassNotFoundException e) {
            throw new RuntimeException("failed to load class " + className, e);
        }
    }
}

Related

  1. classForName(String className)
  2. classForName(String className)
  3. classForName(String className)
  4. classForName(String className, Class caller)
  5. classForName(String className, Class superClass)
  6. classForName(String clazzName, ClassLoader classLoader)
  7. classForName(String cname)
  8. classForName(String columnType)
  9. classForName(String listener)