public interface Classpath extends ClasspathScanner
ClassPath is an interface implemented by objects
representing a class search path.
The users can define a class implementing this interface so that a class file is obtained from a non-standard source.
| 限定符和类型 | 方法和说明 |
|---|---|
ClassFile |
findClassFile(String classname)
根据 class name 在 root 下查找
|
Resource |
findResource(String relativePath)
Returns the uniform resource locator (URL) of the class file
with the specified name.
|
Location |
getRoot()
root 位置,如果 root 是 null, 则为无root资源
|
allResources, scanClassFiles, scanResourceLocations, scanResourcesResource findResource(@NonNull String relativePath)
relativePath - your resource locationClassFile findClassFile(String classname)
classname - the class nameLocation getRoot()
Copyright © 2020. All rights reserved.