Here you can find the source of loadClass(ClassLoader classLoader, String fullyQualifiedClassName)
Parameter | Description |
---|---|
classLoader | The class loader. |
fullyQualifiedClassName | The fully qualified class name. |
public static Class<?> loadClass(ClassLoader classLoader, String fullyQualifiedClassName)
//package com.java2s; //License from project: Open Source License public class Main { /**/*ww w .j a v a2s.c o m*/ * Load a class. * * @param classLoader The class loader. * @param fullyQualifiedClassName The fully qualified class name. * @return The class object. */ public static Class<?> loadClass(ClassLoader classLoader, String fullyQualifiedClassName) { try { return classLoader.loadClass(fullyQualifiedClassName); } catch (ClassNotFoundException e) { throw new RuntimeException(e); } } }