public class PathMatchingInJarResourcePatternResolver
extends org.springframework.core.io.support.PathMatchingResourcePatternResolver
Constructor and Description |
---|
PathMatchingInJarResourcePatternResolver() |
PathMatchingInJarResourcePatternResolver(ClassLoader classLoader) |
PathMatchingInJarResourcePatternResolver(org.springframework.core.io.ResourceLoader resourceLoader) |
Modifier and Type | Method and Description |
---|---|
protected Set<org.springframework.core.io.Resource> |
doFindPathMatchingFileResources(org.springframework.core.io.Resource rootDirResource,
String pattern) |
protected org.springframework.core.io.Resource[] |
findAllClassPathResources(String location)
Find all class location resources with the given location via the
ClassLoader.
|
List<String> |
getScanPaths() |
addAllClassLoaderJarRoots, addClassPathManifestEntries, convertClassLoaderURL, determineRootDir, doFindAllClassPathResources, doFindMatchingFileSystemResources, doFindPathMatchingJarResources, doFindPathMatchingJarResources, doRetrieveMatchingFiles, findPathMatchingResources, getClassLoader, getJarFile, getPathMatcher, getResource, getResourceLoader, getResources, isJarResource, resolveRootDirResource, retrieveMatchingFiles, setPathMatcher
public PathMatchingInJarResourcePatternResolver()
public PathMatchingInJarResourcePatternResolver(ClassLoader classLoader)
public PathMatchingInJarResourcePatternResolver(org.springframework.core.io.ResourceLoader resourceLoader)
protected Set<org.springframework.core.io.Resource> doFindPathMatchingFileResources(org.springframework.core.io.Resource rootDirResource, String pattern)
doFindPathMatchingFileResources
in class org.springframework.core.io.support.PathMatchingResourcePatternResolver
protected org.springframework.core.io.Resource[] findAllClassPathResources(String location) throws IOException
findAllClassPathResources
in class org.springframework.core.io.support.PathMatchingResourcePatternResolver
location
- the absolute path within the classpathIOException
- in case of I/O errorsClassLoader.getResources(java.lang.String)
,
PathMatchingResourcePatternResolver.convertClassLoaderURL(java.net.URL)
Copyright © 2006–2018 TinyGroup. All rights reserved.