| 程序包 | 说明 |
|---|---|
| com.alibaba.nacos.common.packagescan.resource |
| 限定符和类型 | 接口和说明 |
|---|---|
interface |
ContextResource
Copy from https://github.com/spring-projects/spring-framework.git, with less modifications
Extended interface for a resource that is loaded from an enclosing
'context', e.g. from a
javax.servlet.ServletContext but also
from plain classpath paths or relative file system paths (specified
without an explicit prefix, hence applying relative to the local
ResourceLoader's context). |
interface |
WritableResource
Copy from https://github.com/spring-projects/spring-framework.git, with less modifications
Extended interface for a resource that supports writing to it.
|
| 限定符和类型 | 类和说明 |
|---|---|
class |
AbstractFileResolvingResource
Copy from https://github.com/spring-projects/spring-framework.git, with less modifications
Abstract base class for resources which resolve URLs into File references,
such as
UrlResource or ClassPathResource. |
class |
AbstractResource
Copy from https://github.com/spring-projects/spring-framework.git, with less modifications
Convenience base class for
Resource implementations,
pre-implementing typical behavior. |
class |
ByteArrayResource
Copy from https://github.com/spring-projects/spring-framework.git, with less modifications
Resource implementation for a given byte array. |
class |
ClassPathResource
Copy from https://github.com/spring-projects/spring-framework.git, with less modifications
Resource implementation for class path resources. |
protected static class |
DefaultResourceLoader.ClassPathContextResource
ClassPathResource that explicitly expresses a context-relative path
through implementing the ContextResource interface.
|
class |
FileSystemResource
Copy from https://github.com/spring-projects/spring-framework.git, with less modifications
Resource implementation for java.io.File and
java.nio.file.Path handles with a file system target. |
class |
FileUrlResource
Copy from https://github.com/spring-projects/spring-framework.git, with less modifications
Subclass of
UrlResource which assumes file resolution, to the degree
of implementing the WritableResource interface for it. |
class |
InputStreamResource
Copy from https://github.com/spring-projects/spring-framework.git, with less modifications
Resource implementation for a given InputStream. |
class |
PathResource
|
class |
UrlResource
Copy from https://github.com/spring-projects/spring-framework.git, with less modifications
Resource implementation for java.net.URL locators. |
class |
VfsResource
Copy from https://github.com/spring-projects/spring-framework.git, with less modifications
JBoss VFS based
Resource implementation. |
| 限定符和类型 | 方法和说明 |
|---|---|
protected Resource |
PathMatchingResourcePatternResolver.convertClassLoaderUrl(URL url)
Convert the given URL as returned from the ClassLoader into a
Resource. |
Resource |
ClassPathResource.createRelative(String relativePath)
This implementation creates a ClassPathResource, applying the given path
relative to the path of the underlying resource of this descriptor.
|
Resource |
UrlResource.createRelative(String relativePath)
This implementation creates a
UrlResource, delegating to
UrlResource.createRelativeUrl(String) for adapting the relative path. |
Resource |
FileSystemResource.createRelative(String relativePath)
This implementation creates a FileSystemResource, applying the given path
relative to the path of the underlying file of this resource descriptor.
|
Resource |
FileUrlResource.createRelative(String relativePath) |
Resource |
PathResource.createRelative(String relativePath)
This implementation creates a PathResource, applying the given path
relative to the path of the underlying file of this resource descriptor.
|
Resource |
DefaultResourceLoader.ClassPathContextResource.createRelative(String relativePath) |
Resource |
Resource.createRelative(String relativePath)
Create a resource relative to this resource.
|
Resource |
VfsResource.createRelative(String relativePath) |
Resource |
AbstractResource.createRelative(String relativePath)
This implementation throws a FileNotFoundException, assuming
that relative resources cannot be created for this resource.
|
protected Resource[] |
PathMatchingResourcePatternResolver.findAllClassPathResources(String location)
Find all class location resources with the given location via the ClassLoader.
|
protected Resource[] |
PathMatchingResourcePatternResolver.findPathMatchingResources(String locationPattern)
Find all resources that match the given location pattern via the
Ant-style PathMatcher.
|
Resource |
ResourceLoader.getResource(String location)
Return a
Resource handle for the specified resource location. |
Resource |
PathMatchingResourcePatternResolver.getResource(String location) |
Resource |
DefaultResourceLoader.getResource(String location) |
protected Resource |
DefaultResourceLoader.getResourceByPath(String path)
Return a Resource handle for the resource at the given path.
|
Resource[] |
PathMatchingResourcePatternResolver.getResources(String locationPattern) |
Resource[] |
ResourcePatternResolver.getResources(String locationPattern)
Resolve the given location pattern into
Resource objects. |
Resource |
ProtocolResolver.resolve(String location,
ResourceLoader resourceLoader)
Resolve the given location against the given resource loader
if this implementation's protocol matches.
|
protected Resource |
PathMatchingResourcePatternResolver.resolveRootDirResource(Resource original)
Resolve the specified resource for path matching.
|
| 限定符和类型 | 方法和说明 |
|---|---|
protected Set<Resource> |
PathMatchingResourcePatternResolver.doFindAllClassPathResources(String path)
Find all class location resources with the given path via the ClassLoader.
|
protected Set<Resource> |
PathMatchingResourcePatternResolver.doFindMatchingFileSystemResources(File rootDir,
String subPattern)
Find all resources in the file system that match the given location pattern
via the Ant-style PathMatcher.
|
protected Set<Resource> |
PathMatchingResourcePatternResolver.doFindPathMatchingFileResources(Resource rootDirResource,
String subPattern)
Find all resources in the file system that match the given location pattern
via the Ant-style PathMatcher.
|
protected Set<Resource> |
PathMatchingResourcePatternResolver.doFindPathMatchingJarResources(Resource rootDirResource,
URL rootDirUrl,
String subPattern)
Find all resources in jar files that match the given location pattern
via the Ant-style PathMatcher.
|
<T> Map<Resource,T> |
DefaultResourceLoader.getResourceCache(Class<T> valueType)
Obtain a cache for the given value type, keyed by
Resource. |
| 限定符和类型 | 方法和说明 |
|---|---|
protected Set<Resource> |
PathMatchingResourcePatternResolver.doFindPathMatchingFileResources(Resource rootDirResource,
String subPattern)
Find all resources in the file system that match the given location pattern
via the Ant-style PathMatcher.
|
protected Set<Resource> |
PathMatchingResourcePatternResolver.doFindPathMatchingJarResources(Resource rootDirResource,
URL rootDirUrl,
String subPattern)
Find all resources in jar files that match the given location pattern
via the Ant-style PathMatcher.
|
protected boolean |
PathMatchingResourcePatternResolver.isJarResource(Resource resource)
Return whether the given resource handle indicates a jar resource
that the
doFindPathMatchingJarResources method can handle. |
protected Resource |
PathMatchingResourcePatternResolver.resolveRootDirResource(Resource original)
Resolve the specified resource for path matching.
|
| 限定符和类型 | 方法和说明 |
|---|---|
protected void |
PathMatchingResourcePatternResolver.addAllClassLoaderJarRoots(ClassLoader classLoader,
Set<Resource> result)
Search all
URLClassLoader URLs for jar file references and add them to the
given set of resources in the form of pointers to the root of the jar file content. |
protected void |
PathMatchingResourcePatternResolver.addClassPathManifestEntries(Set<Resource> result)
Determine jar file references from the "java.class.path." manifest property and add them
to the given set of resources in the form of pointers to the root of the jar file content.
|
Copyright © 2018–2024 Alibaba Group. All rights reserved.