您需要编写一个自定义的类加载器,该类加载器将findClass方法重载
public Class findClass(String name) { byte[] b = ... // get the bytes from wherever they are generated return defineClass(name, b, 0, b.length);}
您需要编写一个自定义的类加载器,该类加载器将findClass方法重载
public Class findClass(String name) { byte[] b = ... // get the bytes from wherever they are generated return defineClass(name, b, 0, b.length);}