Java Class forName forName(String className, ClassLoader classLoader)

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

Description

for Name

License

Open Source License

Declaration

public static Class<?> forName(String className, ClassLoader classLoader) throws ClassNotFoundException 

Method Source Code

//package com.java2s;

public class Main {
    public static Class<?> forName(String className, ClassLoader classLoader) throws ClassNotFoundException {
        if (classLoader == null) {
            return Class.forName(className);
        }//from  ww w  .  ja  v a 2s.  com
        return classLoader.loadClass(className);
    }
}

Related

  1. forName(String className)
  2. forName(String className)
  3. forName(String className, Class instanceOfClass)
  4. forName(String className, Class superType)
  5. forName(String className, Class xface)
  6. forName(String className, ClassLoader defaultClassLoader)
  7. forName(String name)
  8. forName(String name)
  9. forName(String name)