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:
- Iterable<Archive.Entry>, Archive
public class ClasspathArchive
- extends CompositeArchive
Supports JarArchive and FileArchive URLs
- Version:
- $Rev$ $Date$
| Nested classes/interfaces inherited from interface org.apache.xbean.finder.archive.Archive |
Archive.Entry |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ClasspathArchive
public ClasspathArchive(ClassLoader loader,
URL... urls)
ClasspathArchive
public ClasspathArchive(ClassLoader loader,
Iterable<URL> urls)
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.