org.apache.webbeans.arquillian.standalone
Class OwbSWClassLoader

java.lang.Object
  extended by java.lang.ClassLoader
      extended by java.security.SecureClassLoader
          extended by java.net.URLClassLoader
              extended by org.apache.webbeans.arquillian.standalone.OwbSWClassLoader
All Implemented Interfaces:
Closeable

public class OwbSWClassLoader
extends URLClassLoader
implements Closeable


Nested Class Summary
protected  class OwbSWClassLoader.ArchiveStreamHandler
           
 
Constructor Summary
OwbSWClassLoader(ClassLoader parent, org.jboss.shrinkwrap.api.Archive<?> archive, boolean useOnlyArchiveResources, Collection<String> useOnlyArchiveResourcesExcludes)
           
 
Method Summary
 void close()
           
 URL findResource(String name)
           
 Enumeration<URL> findResources(String name)
           
 URL getResource(String name)
           
 Enumeration<URL> getResources(String name)
           
 
Methods inherited from class java.net.URLClassLoader
addURL, definePackage, findClass, 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, getResourceAsStream, 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

OwbSWClassLoader

public OwbSWClassLoader(ClassLoader parent,
                        org.jboss.shrinkwrap.api.Archive<?> archive,
                        boolean useOnlyArchiveResources,
                        Collection<String> useOnlyArchiveResourcesExcludes)
Method Detail

getResource

public URL getResource(String name)
Overrides:
getResource in class ClassLoader

getResources

public Enumeration<URL> getResources(String name)
                              throws IOException
Overrides:
getResources in class ClassLoader
Throws:
IOException

findResource

public URL findResource(String name)
Overrides:
findResource in class URLClassLoader

findResources

public Enumeration<URL> findResources(String name)
                               throws IOException
Overrides:
findResources in class URLClassLoader
Throws:
IOException

close

public void close()
           throws IOException
Specified by:
close in interface Closeable
Throws:
IOException


Copyright © 2008–2015 The Apache Software Foundation. All rights reserved.