public class ClassPathRoot extends Object implements Iterable<ClassPathResource>
for (Class aClass : ClassPathUtils.resolveClasses(new URL[]{new File("/home/vpc/my-jar.jar").toURI().toURL()})) {
System.out.println(aClass);
}
for (String aClass : ClassPathUtils.resolveContextClassNames()) {
System.out.println(aClass);
}
| Constructor and Description |
|---|
ClassPathRoot(File file) |
ClassPathRoot(URL url) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(String path) |
ClassPathResource |
find(String path) |
Iterator<ClassPathResource> |
iterator() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic ClassPathRoot(File file)
public ClassPathRoot(URL url)
public Iterator<ClassPathResource> iterator()
iterator in interface Iterable<ClassPathResource>public ClassPathResource find(String path) throws IOException
IOExceptionpublic boolean contains(String path) throws IOException
IOExceptionCopyright © 2021 vpc open source initiative. All rights reserved.