接口的使用
com.alibaba.nacos.common.packagescan.resource.Resource
-
使用Resource的程序包 程序包 说明 com.alibaba.nacos.common.packagescan com.alibaba.nacos.common.packagescan.resource -
-
com.alibaba.nacos.common.packagescan中Resource的使用
参数类型为Resource的com.alibaba.nacos.common.packagescan中的方法 修饰符和类型 方法 说明 private java.lang.Class<?>DefaultPackageScan. getClassByResource(Resource resource)private static ClassReaderDefaultPackageScan. getClassReader(Resource resource) -
com.alibaba.nacos.common.packagescan.resource中Resource的使用
com.alibaba.nacos.common.packagescan.resource中Resource的子接口 修饰符和类型 接口 说明 interfaceContextResourceCopy 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 ajavax.servlet.ServletContextbut also from plain classpath paths or relative file system paths (specified without an explicit prefix, hence applying relative to the localResourceLoader's context).interfaceWritableResourceCopy from https://github.com/spring-projects/spring-framework.git, with less modifications Extended interface for a resource that supports writing to it.实现Resource的com.alibaba.nacos.common.packagescan.resource中的类 修饰符和类型 类 说明 classAbstractFileResolvingResourceCopy from https://github.com/spring-projects/spring-framework.git, with less modifications Abstract base class for resources which resolve URLs into File references, such asUrlResourceorClassPathResource.classAbstractResourceCopy from https://github.com/spring-projects/spring-framework.git, with less modifications Convenience base class forResourceimplementations, pre-implementing typical behavior.classByteArrayResourceCopy from https://github.com/spring-projects/spring-framework.git, with less modificationsResourceimplementation for a given byte array.classClassPathResourceCopy from https://github.com/spring-projects/spring-framework.git, with less modificationsResourceimplementation for class path resources.protected static classDefaultResourceLoader.ClassPathContextResourceClassPathResource that explicitly expresses a context-relative path through implementing the ContextResource interface.classFileSystemResourceCopy from https://github.com/spring-projects/spring-framework.git, with less modificationsResourceimplementation forjava.io.Fileandjava.nio.file.Pathhandles with a file system target.classFileUrlResourceCopy from https://github.com/spring-projects/spring-framework.git, with less modifications Subclass ofUrlResourcewhich assumes file resolution, to the degree of implementing theWritableResourceinterface for it.classInputStreamResourceCopy from https://github.com/spring-projects/spring-framework.git, with less modificationsResourceimplementation for a givenInputStream.classPathResourceCopy from https://github.com/spring-projects/spring-framework.git, with less modificationsResourceimplementation forPathhandles, performing all operations and transformations via thePathAPI.classUrlResourceCopy from https://github.com/spring-projects/spring-framework.git, with less modificationsResourceimplementation forjava.net.URLlocators.classVfsResourceCopy from https://github.com/spring-projects/spring-framework.git, with less modifications JBoss VFS basedResourceimplementation.类型参数类型为Resource的com.alibaba.nacos.common.packagescan.resource中的字段 修饰符和类型 字段 说明 private java.util.Map<java.lang.Class<?>,java.util.Map<Resource,?>>DefaultResourceLoader. resourceCachesprivate java.util.Set<Resource>PathMatchingResourcePatternResolver.PatternVirtualFileVisitor. resources返回Resource的com.alibaba.nacos.common.packagescan.resource中的方法 修饰符和类型 方法 说明 protected ResourcePathMatchingResourcePatternResolver. convertClassLoaderUrl(java.net.URL url)Convert the given URL as returned from the ClassLoader into aResource.ResourceAbstractResource. createRelative(java.lang.String relativePath)This implementation throws a FileNotFoundException, assuming that relative resources cannot be created for this resource.ResourceClassPathResource. createRelative(java.lang.String relativePath)This implementation creates a ClassPathResource, applying the given path relative to the path of the underlying resource of this descriptor.ResourceDefaultResourceLoader.ClassPathContextResource. createRelative(java.lang.String relativePath)ResourceFileSystemResource. createRelative(java.lang.String relativePath)This implementation creates a FileSystemResource, applying the given path relative to the path of the underlying file of this resource descriptor.ResourceFileUrlResource. createRelative(java.lang.String relativePath)ResourcePathResource. createRelative(java.lang.String relativePath)This implementation creates a PathResource, applying the given path relative to the path of the underlying file of this resource descriptor.ResourceResource. createRelative(java.lang.String relativePath)Create a resource relative to this resource.ResourceUrlResource. createRelative(java.lang.String relativePath)This implementation creates aUrlResource, delegating toUrlResource.createRelativeUrl(String)for adapting the relative path.ResourceVfsResource. createRelative(java.lang.String relativePath)protected Resource[]PathMatchingResourcePatternResolver. findAllClassPathResources(java.lang.String location)Find all class location resources with the given location via the ClassLoader.protected Resource[]PathMatchingResourcePatternResolver. findPathMatchingResources(java.lang.String locationPattern)Find all resources that match the given location pattern via the Ant-style PathMatcher.static ResourceAbstractFileResolvingResource.VfsResourceDelegate. getResource(java.net.URI uri)static ResourceAbstractFileResolvingResource.VfsResourceDelegate. getResource(java.net.URL url)ResourceDefaultResourceLoader. getResource(java.lang.String location)ResourcePathMatchingResourcePatternResolver. getResource(java.lang.String location)ResourceResourceLoader. getResource(java.lang.String location)Return aResourcehandle for the specified resource location.protected ResourceDefaultResourceLoader. getResourceByPath(java.lang.String path)Return a Resource handle for the resource at the given path.Resource[]PathMatchingResourcePatternResolver. getResources(java.lang.String locationPattern)Resource[]ResourcePatternResolver. getResources(java.lang.String locationPattern)Resolve the given location pattern intoResourceobjects.ResourceProtocolResolver. resolve(java.lang.String location, ResourceLoader resourceLoader)Resolve the given location against the given resource loader if this implementation's protocol matches.protected ResourcePathMatchingResourcePatternResolver. resolveRootDirResource(Resource original)Resolve the specified resource for path matching.返回变量类型为Resource的类型的com.alibaba.nacos.common.packagescan.resource中的方法 修饰符和类型 方法 说明 protected java.util.Set<Resource>PathMatchingResourcePatternResolver. doFindAllClassPathResources(java.lang.String path)Find all class location resources with the given path via the ClassLoader.protected java.util.Set<Resource>PathMatchingResourcePatternResolver. doFindMatchingFileSystemResources(java.io.File rootDir, java.lang.String subPattern)Find all resources in the file system that match the given location pattern via the Ant-style PathMatcher.protected java.util.Set<Resource>PathMatchingResourcePatternResolver. doFindPathMatchingFileResources(Resource rootDirResource, java.lang.String subPattern)Find all resources in the file system that match the given location pattern via the Ant-style PathMatcher.protected java.util.Set<Resource>PathMatchingResourcePatternResolver. doFindPathMatchingJarResources(Resource rootDirResource, java.net.URL rootDirUrl, java.lang.String subPattern)Find all resources in jar files that match the given location pattern via the Ant-style PathMatcher.static java.util.Set<Resource>PathMatchingResourcePatternResolver.VfsResourceMatchingDelegate. findMatchingResources(java.net.URL rootDirUrl, java.lang.String locationPattern, PathMatcher pathMatcher)<T> java.util.Map<Resource,T>DefaultResourceLoader. getResourceCache(java.lang.Class<T> valueType)Obtain a cache for the given value type, keyed byResource.java.util.Set<Resource>PathMatchingResourcePatternResolver.PatternVirtualFileVisitor. getResources()参数类型为Resource的com.alibaba.nacos.common.packagescan.resource中的方法 修饰符和类型 方法 说明 protected java.util.Set<Resource>PathMatchingResourcePatternResolver. doFindPathMatchingFileResources(Resource rootDirResource, java.lang.String subPattern)Find all resources in the file system that match the given location pattern via the Ant-style PathMatcher.protected java.util.Set<Resource>PathMatchingResourcePatternResolver. doFindPathMatchingJarResources(Resource rootDirResource, java.net.URL rootDirUrl, java.lang.String subPattern)Find all resources in jar files that match the given location pattern via the Ant-style PathMatcher.protected booleanPathMatchingResourcePatternResolver. isJarResource(Resource resource)Return whether the given resource handle indicates a jar resource that thedoFindPathMatchingJarResourcesmethod can handle.protected ResourcePathMatchingResourcePatternResolver. resolveRootDirResource(Resource original)Resolve the specified resource for path matching.类型变量类型为Resource的com.alibaba.nacos.common.packagescan.resource中的方法参数 修饰符和类型 方法 说明 protected voidPathMatchingResourcePatternResolver. addAllClassLoaderJarRoots(java.lang.ClassLoader classLoader, java.util.Set<Resource> result)Search allURLClassLoaderURLs 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 voidPathMatchingResourcePatternResolver. addClassPathManifestEntries(java.util.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.private booleanPathMatchingResourcePatternResolver. hasDuplicate(java.lang.String filePath, java.util.Set<Resource> result)Check whether the given file path has a duplicate but differently structured entry in the existing result, i.e. with or without a leading slash.
-