Java Class Load loadClassReflectively(ClassLoader classLoader, String fullyQualifiedClassName)

Here you can find the source of loadClassReflectively(ClassLoader classLoader, String fullyQualifiedClassName)

Description

load Class Reflectively

License

Open Source License

Declaration

public static Class<?> loadClassReflectively(ClassLoader classLoader, String fullyQualifiedClassName) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    public static Class<?> loadClassReflectively(ClassLoader classLoader, String fullyQualifiedClassName) {
        try {/*from  w w  w  .j  a v  a  2  s  . c  o  m*/
            return classLoader.loadClass(fullyQualifiedClassName);
        } catch (ClassNotFoundException e) {
            throw new RuntimeException(e);
        }
    }
}

Related

  1. loadClassElseThrow(final String enumType)
  2. loadClassFromClassLoader( String fillyQualifiedClassName)
  3. loadClassFromContextClassLoader(String theClassName)
  4. loadClassOrNull(String className)
  5. loadClassOrReturnNull(ClassLoader loader, String className)
  6. loadClassSafe(final String klassName)
  7. loadClassSilently(ClassLoader cl, String name)
  8. loadClassUsingClass(Class clazz, String name)
  9. loadClassViaContext(String fqcn)