public class ShrinkWrapClassLoader extends URLClassLoader implements Closeable
close() to free resources.| Constructor and Description |
|---|
ShrinkWrapClassLoader(Archive<?>... archives)
Constructs a new ShrinkWrapClassLoader for the specified
Archives using the default delegation parent
ClassLoader. |
ShrinkWrapClassLoader(ClassLoader parent,
Archive<?>... archives)
Constructs a new ShrinkWrapClassLoader for the given
Archives. |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
addURL, definePackage, findClass, findResource, findResources, getPermissions, getResourceAsStream, getURLs, newInstance, newInstancedefineClass, defineClassclearAssertionStatus, 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, setSignerspublic ShrinkWrapClassLoader(Archive<?>... archives)
Archives using the default delegation parent
ClassLoader. The Archives will be searched in the order specified for classes and resources
after first searching in the parent class loader.archives - the Archives from which to load classes and resourcespublic ShrinkWrapClassLoader(ClassLoader parent, Archive<?>... archives)
Archives. The Archives will be searched in
the order specified for classes and resources after first searching in the specified parent class loader.parent - the parent class loader for delegationarchives - the Archives from which to load classes and resourcespublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class URLClassLoaderIOExceptionCopyright © 2012 JBoss by Red Hat. All Rights Reserved.