public class PluginClassLoader
extends java.net.URLClassLoader
Constructor and Description |
---|
PluginClassLoader(java.lang.ClassLoader parent,
java.net.URL... urls)
Load Classes from URLs with a parent loader
|
PluginClassLoader(java.net.URL[] urls)
Load Classes from URLs
|
Modifier and Type | Method and Description |
---|---|
java.lang.Class<?> |
getDefaultClass()
Get the Default Class to load when no class is found
|
void |
setDefaultClass(java.lang.Class<?> clazz)
Set the Default Class to load when no class is found
|
close, findResource, findResources, getResourceAsStream, getURLs, newInstance, newInstance
public PluginClassLoader(java.net.URL[] urls)
urls
- URLspublic PluginClassLoader(java.lang.ClassLoader parent, java.net.URL... urls)
parent
- Parent loaderurls
- URLspublic void setDefaultClass(java.lang.Class<?> clazz)
clazz
- Classpublic java.lang.Class<?> getDefaultClass() throws java.lang.ClassNotFoundException
java.lang.ClassNotFoundException
- when no Default Class is set