public class JarDirectoryClasspath extends AbstractClasspath
DirectoryClasspath| 构造器和说明 |
|---|
JarDirectoryClasspath(String dirName) |
| 限定符和类型 | 方法和说明 |
|---|---|
Set<Location> |
allResources() |
Resource |
findResource(String relativePath)
Returns the uniform resource locator (URL) of the class file
with the specified name.
|
Location |
getRoot()
root 位置,如果 root 是 null, 则为无root资源
|
findClassFile, scanClassFiles, scanResourceLocations, scanResourcespublic JarDirectoryClasspath(String dirName)
public Resource findResource(String relativePath)
ClasspathrelativePath - your resource locationpublic Location getRoot()
Classpathpublic Set<Location> allResources()
allResources 在接口中 ClasspathScannerallResources 在类中 AbstractClasspathCopyright © 2020. All rights reserved.