Java Class Load classForName(String name)

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

Description

Gets the class for the given name

License

Open Source License

Parameter

Parameter Description
name a parameter

Return

Class reflected class

Declaration

public static Class classForName(String name) throws ClassNotFoundException 

Method Source Code

//package com.java2s;

public class Main {
    /**//w  ww.  j  a  v a2 s .  com
     * Gets the class for the given name
     * 
     * @param name
     * @return Class reflected class
     */
    public static Class classForName(String name) throws ClassNotFoundException {
        Class rs = Class.forName(name);
        //      Class rs = BshClassManager.classForName(name);
        //      if (rs == null) {
        //         throw new ClassNotFoundException(name);
        //      }
        return rs;
    }
}

Related

  1. classForName(String columnType)
  2. classForName(String listener)
  3. classForName(String name)
  4. classForName(String name)
  5. classForName(String name)
  6. classForName(String name)
  7. classForName(String name)
  8. classForName(String name)
  9. classForName(String name)