This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class CustomeClassLoader_T{ | |
static class CustomClassLoader extends ClassLoader { | |
String host; | |
int port; | |
public Class findClass(String name) { | |
byte[] b = loadClassData(name); | |
return b!=null?defineClass(name, b, 0, b.length):null;//or throw, return null for this example | |
} | |
private byte[] loadClassData(String name) { | |
// load the class data from the connection |
NewerOlder