Back to project page GenericServer.
The source code is released under:
GNU General Public License
If you think the Android project GenericServer listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.davecoss.android.genericserver; /*from ww w . ja v a 2s . co m*/ import java.lang.ClassLoader; import java.net.URL; import java.net.URLClassLoader; public class Plugin extends URLClassLoader { public static String DEFAULT_PLUGIN_PATH = "file:plugins.jar"; public Plugin(URL[] urls) { super(urls); } public Plugin(URL[] urls, ClassLoader parent) { super(urls, parent); } @Override public void addURL(URL url) { super.addURL(url); } public static URL[] getDefaultURLs() { ClassLoader cl = ClassLoader.getSystemClassLoader(); URL[] empty = {}; URLClassLoader urlcl = new URLClassLoader(empty, cl); return urlcl.getURLs(); } }