|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.ClassLoader java.security.SecureClassLoader java.net.URLClassLoader org.jboss.shrinkwrap.api.classloader.ShrinkWrapClassLoader
public class ShrinkWrapClassLoader
Extension that will create a ClassLoader based on a Array of Archives.
When done, call close()
to free resources.
Constructor Summary | |
---|---|
ShrinkWrapClassLoader(Archive<?>... archives)
Constructs a new ShrinkWrapClassLoader for the specified Archive s using the
default delegation parent ClassLoader . |
|
ShrinkWrapClassLoader(java.lang.ClassLoader parent,
Archive<?>... archives)
Constructs a new ShrinkWrapClassLoader for the given Archive s. |
Method Summary | |
---|---|
void |
close()
|
Methods inherited from class java.net.URLClassLoader |
---|
addURL, 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, findLibrary, findLoadedClass, findSystemClass, getPackage, getPackages, getParent, getResource, getResourceAsStream, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, loadClass, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ShrinkWrapClassLoader(Archive<?>... archives)
Archive
s using the
default delegation parent ClassLoader
. The Archive
s will
be searched in the order specified for classes and resources after
first searching in the parent class loader.
archives
- the Archive
s from which to load classes and resourcespublic ShrinkWrapClassLoader(java.lang.ClassLoader parent, Archive<?>... archives)
Archive
s. The Archive
s 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 Archive
s from which to load classes and resourcesMethod Detail |
---|
public void close() throws java.io.IOException
close
in interface java.io.Closeable
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |