Java Class Load loadClass(String className, boolean isInitialized)

Here you can find the source of loadClass(String className, boolean isInitialized)

Description

load Class

License

Apache License

Declaration

public static Class<?> loadClass(String className, boolean isInitialized) 

Method Source Code

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

public class Main {

    public static Class<?> loadClass(String className, boolean isInitialized) {
        Class<?> clazz;//from  w w w  . j  a  v a 2 s.c  om
        try {
            clazz = Class.forName(className, isInitialized, getClassLoader());
        } catch (ClassNotFoundException cnfe) {
            cnfe.printStackTrace();
            throw new RuntimeException(cnfe);
        }
        return clazz;
    }

    public static ClassLoader getClassLoader() {
        return Thread.currentThread().getContextClassLoader();
    }
}

Related

  1. loadClass(String className)
  2. loadClass(String className)
  3. loadClass(String className)
  4. loadClass(String className)
  5. loadClass(String className)
  6. loadClass(String className, Class callingClass)
  7. loadClass(String classname, Class clazz)
  8. loadClass(String classname, Class clazz)
  9. loadClass(String classname, Class clazz)