public class WarFileClasspath extends AbstractClasspath
| 限定符和类型 | 字段和说明 |
|---|---|
static String |
FILE_NAME_PREFIX |
| 构造器和说明 |
|---|
WarFileClasspath(File file) |
WarFileClasspath(String jarPath) |
| 限定符和类型 | 方法和说明 |
|---|---|
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 WarFileClasspath(String jarPath)
public WarFileClasspath(File file)
public Resource findResource(String relativePath)
ClasspathrelativePath - your resource locationpublic Location getRoot()
Classpathpublic Set<Location> allResources()
allResources 在接口中 ClasspathScannerallResources 在类中 AbstractClasspathCopyright © 2022. All rights reserved.