Package org.apache.axis2.deployment
Class DeploymentClassLoader
- java.lang.Object
-
- java.lang.ClassLoader
-
- java.security.SecureClassLoader
-
- java.net.URLClassLoader
-
- org.apache.axis2.deployment.DeploymentClassLoader
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
,BeanInfoCachingClassLoader
public class DeploymentClassLoader extends URLClassLoader implements BeanInfoCachingClassLoader
-
-
Constructor Summary
Constructors Constructor Description DeploymentClassLoader(URL[] urls, ClassLoader parent, boolean isChildFirstClassLoading)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BeanInfoCache
getBeanInfoCache()
Get theBeanInfo
cache for this class loader.InputStream
getResourceAsStream(String name)
boolean
isChildFirstClassLoading()
protected Class<?>
loadClass(String name, boolean resolve)
void
setChildFirstClassLoading(boolean childFirstClassLoading)
-
Methods inherited from class java.net.URLClassLoader
addURL, close, definePackage, findClass, findResource, findResources, getPermissions, getURLs, newInstance, newInstance
-
Methods inherited from class java.security.SecureClassLoader
defineClass, defineClass
-
Methods inherited from class java.lang.ClassLoader
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findClass, findLibrary, findLoadedClass, findResource, findSystemClass, getClassLoadingLock, getDefinedPackage, getDefinedPackages, getName, getPackage, getPackages, getParent, getPlatformClassLoader, getResource, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, getUnnamedModule, isRegisteredAsParallelCapable, loadClass, registerAsParallelCapable, resolveClass, resources, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners
-
-
-
-
Constructor Detail
-
DeploymentClassLoader
public DeploymentClassLoader(URL[] urls, ClassLoader parent, boolean isChildFirstClassLoading)
Constructor.- Parameters:
urls
-URL
sparent
- parent classloaderClassLoader
-
-
Method Detail
-
getResourceAsStream
public InputStream getResourceAsStream(String name)
- Overrides:
getResourceAsStream
in classURLClassLoader
-
loadClass
protected Class<?> loadClass(String name, boolean resolve) throws ClassNotFoundException
- Overrides:
loadClass
in classClassLoader
- Throws:
ClassNotFoundException
-
isChildFirstClassLoading
public boolean isChildFirstClassLoading()
-
setChildFirstClassLoading
public void setChildFirstClassLoading(boolean childFirstClassLoading)
-
getBeanInfoCache
public final BeanInfoCache getBeanInfoCache()
Description copied from interface:BeanInfoCachingClassLoader
Get theBeanInfo
cache for this class loader.- Specified by:
getBeanInfoCache
in interfaceBeanInfoCachingClassLoader
- Returns:
- the cache instance; must not be
null
-
-