public class LaunchedURLClassLoader extends URLClassLoader
ClassLoader
used by the Launcher
.Constructor and Description |
---|
LaunchedURLClassLoader(boolean exploded,
Archive rootArchive,
URL[] urls,
ClassLoader parent)
Create a new
LaunchedURLClassLoader instance. |
LaunchedURLClassLoader(boolean exploded,
URL[] urls,
ClassLoader parent)
Create a new
LaunchedURLClassLoader instance. |
LaunchedURLClassLoader(URL[] urls,
ClassLoader parent)
Create a new
LaunchedURLClassLoader instance. |
Modifier and Type | Method and Description |
---|---|
void |
clearCache()
Clear URL caches.
|
protected Package |
definePackage(String name,
Manifest man,
URL url) |
protected Package |
definePackage(String name,
String specTitle,
String specVersion,
String specVendor,
String implTitle,
String implVersion,
String implVendor,
URL sealBase) |
URL |
findResource(String name) |
Enumeration<URL> |
findResources(String name) |
protected Class<?> |
loadClass(String name,
boolean resolve) |
addURL, close, findClass, getPermissions, getResourceAsStream, getURLs, newInstance, newInstance
defineClass, defineClass
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, findLibrary, findLoadedClass, findSystemClass, getClassLoadingLock, getPackage, getPackages, getParent, getResource, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, registerAsParallelCapable, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners
public LaunchedURLClassLoader(URL[] urls, ClassLoader parent)
LaunchedURLClassLoader
instance.urls
- the URLs from which to load classes and resourcesparent
- the parent class loader for delegationpublic LaunchedURLClassLoader(boolean exploded, URL[] urls, ClassLoader parent)
LaunchedURLClassLoader
instance.exploded
- if the underlying archive is explodedurls
- the URLs from which to load classes and resourcesparent
- the parent class loader for delegationpublic LaunchedURLClassLoader(boolean exploded, Archive rootArchive, URL[] urls, ClassLoader parent)
LaunchedURLClassLoader
instance.exploded
- if the underlying archive is explodedrootArchive
- the root archive or null
urls
- the URLs from which to load classes and resourcesparent
- the parent class loader for delegationpublic URL findResource(String name)
findResource
in class URLClassLoader
public Enumeration<URL> findResources(String name) throws IOException
findResources
in class URLClassLoader
IOException
protected Class<?> loadClass(String name, boolean resolve) throws ClassNotFoundException
loadClass
in class ClassLoader
ClassNotFoundException
protected Package definePackage(String name, Manifest man, URL url) throws IllegalArgumentException
definePackage
in class URLClassLoader
IllegalArgumentException
protected Package definePackage(String name, String specTitle, String specVersion, String specVendor, String implTitle, String implVersion, String implVendor, URL sealBase) throws IllegalArgumentException
definePackage
in class ClassLoader
IllegalArgumentException
public void clearCache()