Here you can find the source of loadClass(String className, ClassLoader classLoader)
Parameter | Description |
---|---|
className | a parameter |
classLoader | a parameter |
public static Class<?> loadClass(String className, ClassLoader classLoader)
//package com.java2s; //License from project: Apache License public class Main { /**//from w ww .j a v a2 s . com * * @param className * @param classLoader * @return */ public static Class<?> loadClass(String className, ClassLoader classLoader) { try { return classLoader.loadClass(className); } catch (Exception e) { throw new IllegalArgumentException("loadClass(" + className + ") with ex:", e); } } }