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, newInstance
defineClass, defineClass
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findLibrary, findLoadedClass, findSystemClass, getClassLoadingLock, getPackage, getPackages, getParent, getResource, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, registerAsParallelCapable, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners
public DeploymentClassLoader(URL[] urls, List embedded_jars, ClassLoader parent, boolean isChildFirstClassLoading)
urls
- URL
sparent
- parent classloader ClassLoader
protected Class findClass(String name) throws ClassNotFoundException
findClass
in class URLClassLoader
name
- the name of the classClassNotFoundException
- if the class could not be foundpublic URL findResource(String resource)
findResource
in class URLClassLoader
resource
- 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 URLClassLoader
resource
- the resource nameEnumeration
of URL
sIOException
- if an I/O exception occurspublic InputStream getResourceAsStream(String name)
getResourceAsStream
in class URLClassLoader
protected Class<?> loadClass(String name, boolean resolve) throws ClassNotFoundException
loadClass
in class ClassLoader
ClassNotFoundException
public boolean isChildFirstClassLoading()
public void setChildFirstClassLoading(boolean childFirstClassLoading)
public final BeanInfoCache getBeanInfoCache()
BeanInfoCachingClassLoader
BeanInfo
cache for this class loader.getBeanInfoCache
in interface BeanInfoCachingClassLoader
null
Copyright © 2004–2018 The Apache Software Foundation. All rights reserved.