org.jboss.arquillian.openwebbeans
Class ShrinkWrapClassLoader

java.lang.Object
  extended by java.lang.ClassLoader
      extended by java.security.SecureClassLoader
          extended by org.jboss.arquillian.openwebbeans.ShrinkWrapClassLoader

public class ShrinkWrapClassLoader
extends SecureClassLoader

A ClassLoader implementation that can locate resources in a ShrinkWrap archive

NOTE This is a prototype implementation of this concept. It does not address all classloading concerns as of yet.

Author:
Dan Allen

Field Summary
static String ARCHIVE_PROTOCOL
           
 
Constructor Summary
ShrinkWrapClassLoader(org.jboss.shrinkwrap.api.Archive<?> archive)
           
 
Method Summary
protected  URL findResource(String name)
           
protected  Enumeration<URL> findResources(String name)
           
 
Methods inherited from class java.security.SecureClassLoader
defineClass, defineClass, getPermissions
 
Methods inherited from class java.lang.ClassLoader
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findClass, 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
 

Field Detail

ARCHIVE_PROTOCOL

public static final String ARCHIVE_PROTOCOL
See Also:
Constant Field Values
Constructor Detail

ShrinkWrapClassLoader

public ShrinkWrapClassLoader(org.jboss.shrinkwrap.api.Archive<?> archive)
Method Detail

findResource

protected URL findResource(String name)
Overrides:
findResource in class ClassLoader

findResources

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


Copyright © 2010 JBoss, a division of Red Hat, Inc.. All Rights Reserved.