资 源 简 介
GClassLoader
GClassLoader is a configurable, dynamic and extensible custom classloader that loads java classes directly from Jar files and other sources.
Requirements
The following requirements/dependencies has to be met for using GClassloader
GClassLoader requires JDK 1.5 or later
CGlib
Servlet API for an Utility Class that is used to resolve Web App Paths
Objenesis
Log4j
Usage
JarClassLoader gcl = new JarClassLoader();
//Loading classes from different sources
gcl.add("myjar.jar");
gcl.add(new URL("http://myserver.com/myjar.jar"));
gcl.add(new FileInputStream("myotherjar.jar"));
gcl.add("myclassfolder/");
//Recursively load all jar files in the folder/sub-folder(s)
gcl.add("myjarlib/");
GclObjectFa