Java Class Load classForName(String className)

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

Description

class For Name

License

Open Source License

Declaration

public static Class<?> classForName(String className)
            throws ClassNotFoundException 

Method Source Code

//package com.java2s;

public class Main {
    public static Class<?> classForName(String className)
            throws ClassNotFoundException {
        Thread t = Thread.currentThread();
        ClassLoader cl = t.getContextClassLoader();
        Class<?> cls = cl.loadClass(className);
        return cls;
    }//from w w w. j  a  v a 2s. c  om
}

Related

  1. classForName(final String clsName)
  2. classForName(final String theClassName)
  3. classForName(String className)
  4. classForName(String className)
  5. classForName(String className)
  6. classForName(String className)
  7. classForName(String className)
  8. classForName(String className)
  9. classForName(String className)