Class WebArchiveClassLoader
- java.lang.Object
-
- java.lang.ClassLoader
-
- java.security.SecureClassLoader
-
- java.net.URLClassLoader
-
- org.jboss.shrinkwrap.api.classloader.ShrinkWrapClassLoader
-
- org.jboss.arquillian.container.weld.embedded.WebArchiveClassLoader
-
- All Implemented Interfaces:
Closeable,AutoCloseable
public class WebArchiveClassLoader extends org.jboss.shrinkwrap.api.classloader.ShrinkWrapClassLoaderClassLoaderimplementation extending theShrinkWrapClassLoaderto serve as an indirection between the requested resource and the Web Specification's root under which resources are to be served ("WEB-INF/classes"). It also handles the contents of WEB-INF/lib to search for resources.- Author:
- Martin Kouba, ALR
- See Also:
- SHRINKWRAP-369
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()URLfindResource(String name)Enumeration<URL>findResources(String name)-
Methods inherited from class java.net.URLClassLoader
addURL, definePackage, findClass, getPermissions, getResourceAsStream, 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, loadClass, registerAsParallelCapable, resolveClass, resources, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners
-
-
-
-
Method Detail
-
findResource
public URL findResource(String name)
- Overrides:
findResourcein classURLClassLoader
-
findResources
public Enumeration<URL> findResources(String name) throws IOException
- Overrides:
findResourcesin classURLClassLoader- Throws:
IOException
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classorg.jboss.shrinkwrap.api.classloader.ShrinkWrapClassLoader- Throws:
IOException
-
-