Package org.apache.xbean.finder.archive
Class ClasspathArchive
- java.lang.Object
-
- org.apache.xbean.finder.archive.CompositeArchive
-
- org.apache.xbean.finder.archive.ClasspathArchive
-
- All Implemented Interfaces:
java.lang.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
Constructors Constructor Description ClasspathArchive(java.lang.ClassLoader loader, java.lang.Iterable<java.net.URL> urls)
ClasspathArchive(java.lang.ClassLoader loader, java.net.URL... urls)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Archive
archive(java.lang.ClassLoader loader, java.net.URL location)
static java.util.List<Archive>
archives(java.lang.ClassLoader loader, java.lang.Iterable<java.net.URL> urls)
static java.util.List<Archive>
archives(java.lang.ClassLoader loader, java.net.URL... urls)
java.io.InputStream
getBytecode(java.lang.String className)
java.lang.Class<?>
loadClass(java.lang.String className)
-
Methods inherited from class org.apache.xbean.finder.archive.CompositeArchive
iterator
-
-
-
-
Method Detail
-
archives
public static java.util.List<Archive> archives(java.lang.ClassLoader loader, java.lang.Iterable<java.net.URL> urls)
-
archive
public static Archive archive(java.lang.ClassLoader loader, java.net.URL location)
-
archives
public static java.util.List<Archive> archives(java.lang.ClassLoader loader, java.net.URL... urls)
-
getBytecode
public java.io.InputStream getBytecode(java.lang.String className) throws java.io.IOException, java.lang.ClassNotFoundException
- Specified by:
getBytecode
in interfaceArchive
- Overrides:
getBytecode
in classCompositeArchive
- Throws:
java.io.IOException
java.lang.ClassNotFoundException
-
loadClass
public java.lang.Class<?> loadClass(java.lang.String className) throws java.lang.ClassNotFoundException
- Specified by:
loadClass
in interfaceArchive
- Overrides:
loadClass
in classCompositeArchive
- Throws:
java.lang.ClassNotFoundException
-
-