public class ExportResourceLoader extends AbstractResourceLoader
ResourceLoader.InputStreamGet, ResourceLoader.MatchType, ResourceLoader.ScanEvent, ResourceLoader.Scanner<T>parentClassLoader| 构造器和说明 |
|---|
ExportResourceLoader(ClassLoader parent,
ResourceLoader resourceLoader) |
ExportResourceLoader(ResourceLoader resourceLoader) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addExport(String exportResources) |
boolean |
exist(String resource) |
Class<?> |
getClass(String className) |
Set<String> |
getExportSet() |
URL |
getResource(String resource) |
InputStream |
getResourceAsStream(String resource) |
List<URL> |
getResources(String resource) |
List<InputStream> |
getResourcesAsStream(String resource) |
boolean |
isExportAll() |
<T> T |
scanOneResource(ResourceLoader.MatchType matchType,
ResourceLoader.Scanner<T> scanner,
String[] scanPaths) |
<T> List<T> |
scanResources(ResourceLoader.MatchType matchType,
ResourceLoader.Scanner<T> scanner,
String[] scanPaths) |
void |
setExportAll(boolean exportAll) |
protected boolean |
testPath(String dirPath) |
buildPredicate, loaderForClassLoaderclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitscanOneResource, scanOneResource, scanResources, scanResourcespublic ExportResourceLoader(ResourceLoader resourceLoader)
public ExportResourceLoader(ClassLoader parent, ResourceLoader resourceLoader)
public Class<?> getClass(String className) throws ClassNotFoundException
getClass 在接口中 ResourceLoadergetClass 在类中 AbstractResourceLoaderClassNotFoundExceptionpublic boolean isExportAll()
public void setExportAll(boolean exportAll)
public void addExport(String exportResources)
protected boolean testPath(String dirPath)
public <T> List<T> scanResources(ResourceLoader.MatchType matchType, ResourceLoader.Scanner<T> scanner, String[] scanPaths) throws IOException
IOExceptionpublic <T> T scanOneResource(ResourceLoader.MatchType matchType, ResourceLoader.Scanner<T> scanner, String[] scanPaths) throws IOException
IOExceptionpublic URL getResource(String resource) throws IOException
IOExceptionpublic InputStream getResourceAsStream(String resource) throws IOException
IOExceptionpublic List<URL> getResources(String resource) throws IOException
IOExceptionpublic List<InputStream> getResourcesAsStream(String resource) throws IOException
IOExceptionpublic boolean exist(String resource)
Copyright © 2022. All rights reserved.