public class WebArchiveClassLoader
extends org.jboss.shrinkwrap.api.classloader.ShrinkWrapClassLoader
ClassLoader
implementation extending the ShrinkWrapClassLoader
to 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.Modifier and Type | Method and Description |
---|---|
void |
close() |
URL |
findResource(String name) |
Enumeration<URL> |
findResources(String name) |
addURL, definePackage, findClass, getPermissions, getResourceAsStream, 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, loadClass, registerAsParallelCapable, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners
public URL findResource(String name)
findResource
in class URLClassLoader
public Enumeration<URL> findResources(String name) throws IOException
findResources
in class URLClassLoader
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class org.jboss.shrinkwrap.api.classloader.ShrinkWrapClassLoader
IOException
Copyright © 2017 JBoss by Red Hat. All rights reserved.