|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.springframework.core.io.support.PathMatchingResourcePatternResolver
org.webframe.support.driver.resource.jar.JarResourcePatternResolver
public class JarResourcePatternResolver
JarResource资源类,用于匹配搜索jar包中的资源文件
| Field Summary | |
|---|---|
private Class<?> |
jarClass
|
private JarURLConnection |
jarCon
|
| Fields inherited from interface org.springframework.core.io.support.ResourcePatternResolver |
|---|
CLASSPATH_ALL_URL_PREFIX |
| Fields inherited from interface org.springframework.core.io.ResourceLoader |
|---|
CLASSPATH_URL_PREFIX |
| Constructor Summary | |
|---|---|
|
JarResourcePatternResolver(Class<?> jarClass)
|
|
JarResourcePatternResolver(JarURLConnection jarURLConnection)
|
private |
JarResourcePatternResolver(org.springframework.core.io.ResourceLoader resourceLoader)
|
| Method Summary | |
|---|---|
protected org.springframework.core.io.Resource[] |
findPathMatchingJarResources(String locationPattern)
|
org.springframework.core.io.Resource[] |
getResources(String locationPattern)
|
| Methods inherited from class org.springframework.core.io.support.PathMatchingResourcePatternResolver |
|---|
convertClassLoaderURL, determineRootDir, doFindMatchingFileSystemResources, doFindPathMatchingFileResources, doFindPathMatchingJarResources, doRetrieveMatchingFiles, findAllClassPathResources, findPathMatchingResources, getClassLoader, getJarFile, getPathMatcher, getResource, getResourceLoader, isJarResource, resolveRootDirResource, retrieveMatchingFiles, setPathMatcher |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private Class<?> jarClass
private JarURLConnection jarCon
| Constructor Detail |
|---|
public JarResourcePatternResolver(Class<?> jarClass)
throws IOException
IOException
public JarResourcePatternResolver(JarURLConnection jarURLConnection)
throws IOException
IOExceptionprivate JarResourcePatternResolver(org.springframework.core.io.ResourceLoader resourceLoader)
| Method Detail |
|---|
public org.springframework.core.io.Resource[] getResources(String locationPattern)
throws IOException
getResources in interface org.springframework.core.io.support.ResourcePatternResolvergetResources in class org.springframework.core.io.support.PathMatchingResourcePatternResolverIOExceptionprotected org.springframework.core.io.Resource[] findPathMatchingJarResources(String locationPattern)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||