public class DeploymentClassLoader extends URLClassLoader implements BeanInfoCachingClassLoader
| Modifier and Type | Class and Description |
|---|---|
static class |
DeploymentClassLoader.ByteURLConnection |
static class |
DeploymentClassLoader.ByteUrlStreamHandler |
| Constructor and Description |
|---|
DeploymentClassLoader(URL[] urls,
List embedded_jars,
ClassLoader parent,
boolean isChildFirstClassLoading)
DeploymentClassLoader is extended from URLClassLoader.
|
| Modifier and Type | Method and Description |
|---|---|
protected Class |
findClass(String name)
Finds and loads the class with the specified name from the URL search
path.
|
URL |
findResource(String resource)
Finds the resource with the specified name on the URL search path.
|
Enumeration |
findResources(String resource)
Returns an Enumeration of URLs representing all of the resources
on the URL search path having the specified name.
|
BeanInfoCache |
getBeanInfoCache()
Get the
BeanInfo cache for this class loader. |
InputStream |
getResourceAsStream(String name) |
boolean |
isChildFirstClassLoading() |
protected Class<?> |
loadClass(String name,
boolean resolve) |
void |
setChildFirstClassLoading(boolean childFirstClassLoading) |
addURL, close, definePackage, getPermissions, getURLs, newInstance, newInstancedefineClass, defineClassclearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findLibrary, findLoadedClass, findSystemClass, getClassLoadingLock, getPackage, getPackages, getParent, getResource, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, registerAsParallelCapable, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSignerspublic DeploymentClassLoader(URL[] urls, List embedded_jars, ClassLoader parent, boolean isChildFirstClassLoading)
urls - URLsparent - parent classloader ClassLoaderprotected Class findClass(String name) throws ClassNotFoundException
findClass in class URLClassLoadername - the name of the classClassNotFoundException - if the class could not be foundpublic URL findResource(String resource)
findResource in class URLClassLoaderresource - the name of the resourceURL for the resource, or null
if the resource could not be found.public Enumeration findResources(String resource) throws IOException
findResources in class URLClassLoaderresource - the resource nameEnumeration of URLsIOException - if an I/O exception occurspublic InputStream getResourceAsStream(String name)
getResourceAsStream in class URLClassLoaderprotected Class<?> loadClass(String name, boolean resolve) throws ClassNotFoundException
loadClass in class ClassLoaderClassNotFoundExceptionpublic boolean isChildFirstClassLoading()
public void setChildFirstClassLoading(boolean childFirstClassLoading)
public final BeanInfoCache getBeanInfoCache()
BeanInfoCachingClassLoaderBeanInfo cache for this class loader.getBeanInfoCache in interface BeanInfoCachingClassLoadernullCopyright © 2004–2016 The Apache Software Foundation. All rights reserved.