public class DeploymentClassLoader extends java.net.URLClassLoader implements BeanInfoCachingClassLoader
| Modifier and Type | Class and Description |
|---|---|
static class |
DeploymentClassLoader.ByteURLConnection |
static class |
DeploymentClassLoader.ByteUrlStreamHandler |
| Constructor and Description |
|---|
DeploymentClassLoader(java.net.URL[] urls,
java.util.List embedded_jars,
java.lang.ClassLoader parent,
boolean isChildFirstClassLoading)
DeploymentClassLoader is extended from URLClassLoader.
|
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.Class |
findClass(java.lang.String name)
Finds and loads the class with the specified name from the URL search
path.
|
java.net.URL |
findResource(java.lang.String resource)
Finds the resource with the specified name on the URL search path.
|
java.util.Enumeration |
findResources(java.lang.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. |
java.io.InputStream |
getResourceAsStream(java.lang.String name) |
boolean |
isChildFirstClassLoading() |
protected java.lang.Class<?> |
loadClass(java.lang.String name,
boolean resolve) |
void |
setChildFirstClassLoading(boolean childFirstClassLoading) |
addURL, close, definePackage, getPermissions, getURLs, newInstance, newInstanceclearAssertionStatus, 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(java.net.URL[] urls,
java.util.List embedded_jars,
java.lang.ClassLoader parent,
boolean isChildFirstClassLoading)
urls - URLsparent - parent classloader ClassLoaderprotected java.lang.Class findClass(java.lang.String name)
throws java.lang.ClassNotFoundException
findClass in class java.net.URLClassLoadername - the name of the classjava.lang.ClassNotFoundException - if the class could not be foundpublic java.net.URL findResource(java.lang.String resource)
findResource in class java.net.URLClassLoaderresource - the name of the resourceURL for the resource, or null
if the resource could not be found.public java.util.Enumeration findResources(java.lang.String resource)
throws java.io.IOException
findResources in class java.net.URLClassLoaderresource - the resource nameEnumeration of URLsjava.io.IOException - if an I/O exception occurspublic java.io.InputStream getResourceAsStream(java.lang.String name)
getResourceAsStream in class java.net.URLClassLoaderprotected java.lang.Class<?> loadClass(java.lang.String name,
boolean resolve)
throws java.lang.ClassNotFoundException
loadClass in class java.lang.ClassLoaderjava.lang.ClassNotFoundExceptionpublic boolean isChildFirstClassLoading()
public void setChildFirstClassLoading(boolean childFirstClassLoading)
public final BeanInfoCache getBeanInfoCache()
BeanInfoCachingClassLoaderBeanInfo cache for this class loader.getBeanInfoCache in interface BeanInfoCachingClassLoadernullCopyright © 2004-2015 The Apache Software Foundation. All Rights Reserved.