public class LaunchedURLClassLoader extends URLClassLoader
ClassLoader
used by the Launcher
.Constructor and Description |
---|
LaunchedURLClassLoader(URL[] urls,
ClassLoader parent)
Create a new
LaunchedURLClassLoader instance. |
Modifier and Type | Method and Description |
---|---|
URL |
findResource(String name) |
Enumeration<URL> |
findResources(String name) |
URL |
getResource(String name) |
Enumeration<URL> |
getResources(String name) |
protected Class<?> |
loadClass(String name,
boolean resolve)
Attempt to load classes from the URLs before delegating to the parent loader.
|
addURL, close, definePackage, findClass, getPermissions, getResourceAsStream, getURLs, newInstance, newInstance
defineClass, defineClass
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findLibrary, findLoadedClass, findSystemClass, getClassLoadingLock, getPackage, getPackages, getParent, 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 URL getResource(String name)
getResource
in class ClassLoader
public URL findResource(String name)
findResource
in class URLClassLoader
public Enumeration<URL> findResources(String name) throws IOException
findResources
in class URLClassLoader
IOException
public Enumeration<URL> getResources(String name) throws IOException
getResources
in class ClassLoader
IOException
protected Class<?> loadClass(String name, boolean resolve) throws ClassNotFoundException
loadClass
in class ClassLoader
ClassNotFoundException
Copyright © 2015 Pivotal Software, Inc.. All rights reserved.