org.apache.xbean.finder.archive
Class ClasspathArchive

java.lang.Object
  extended by org.apache.xbean.finder.archive.CompositeArchive
      extended by org.apache.xbean.finder.archive.ClasspathArchive
All Implemented Interfaces:
Iterable<Archive.Entry>, Archive

public class ClasspathArchive
extends CompositeArchive

Supports JarArchive and FileArchive URLs

Version:
$Rev$ $Date$

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.apache.xbean.finder.archive.Archive
Archive.Entry
 
Constructor Summary
ClasspathArchive(ClassLoader loader, Iterable<URL> urls)
           
ClasspathArchive(ClassLoader loader, URL... urls)
           
 
Method Summary
static Archive archive(ClassLoader loader, URL location)
           
static List<Archive> archives(ClassLoader loader, Iterable<URL> urls)
           
static List<Archive> archives(ClassLoader loader, URL... urls)
           
 InputStream getBytecode(String className)
           
 Class<?> loadClass(String className)
           
 
Methods inherited from class org.apache.xbean.finder.archive.CompositeArchive
iterator
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClasspathArchive

public ClasspathArchive(ClassLoader loader,
                        URL... urls)

ClasspathArchive

public ClasspathArchive(ClassLoader loader,
                        Iterable<URL> urls)
Method Detail

archives

public static List<Archive> archives(ClassLoader loader,
                                     Iterable<URL> urls)

archive

public static Archive archive(ClassLoader loader,
                              URL location)

archives

public static List<Archive> archives(ClassLoader loader,
                                     URL... urls)

getBytecode

public InputStream getBytecode(String className)
                        throws IOException,
                               ClassNotFoundException
Specified by:
getBytecode in interface Archive
Overrides:
getBytecode in class CompositeArchive
Throws:
IOException
ClassNotFoundException

loadClass

public Class<?> loadClass(String className)
                   throws ClassNotFoundException
Specified by:
loadClass in interface Archive
Overrides:
loadClass in class CompositeArchive
Throws:
ClassNotFoundException


Copyright © 1999-2012 The Apache Software Foundation. All Rights Reserved.