org.webframe.support.driver.resource.jar
Class JarResourcePatternResolver

java.lang.Object
  extended by org.springframework.core.io.support.PathMatchingResourcePatternResolver
      extended by org.webframe.support.driver.resource.jar.JarResourcePatternResolver
All Implemented Interfaces:
org.springframework.core.io.ResourceLoader, org.springframework.core.io.support.ResourcePatternResolver

public class JarResourcePatternResolver
extends org.springframework.core.io.support.PathMatchingResourcePatternResolver

JarResource资源类,用于匹配搜索jar包中的资源文件

Version:
$Id: codetemplates.xml,v 1.1 2009/09/07 08:48:12 Exp $ Create: 2011-4-6 下午04:40:09
Author:
黄国庆

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

jarClass

private Class<?> jarClass

jarCon

private JarURLConnection jarCon
Constructor Detail

JarResourcePatternResolver

public JarResourcePatternResolver(Class<?> jarClass)
                           throws IOException
Throws:
IOException

JarResourcePatternResolver

public JarResourcePatternResolver(JarURLConnection jarURLConnection)
                           throws IOException
Throws:
IOException

JarResourcePatternResolver

private JarResourcePatternResolver(org.springframework.core.io.ResourceLoader resourceLoader)
Method Detail

getResources

public org.springframework.core.io.Resource[] getResources(String locationPattern)
                                                    throws IOException
Specified by:
getResources in interface org.springframework.core.io.support.ResourcePatternResolver
Overrides:
getResources in class org.springframework.core.io.support.PathMatchingResourcePatternResolver
Throws:
IOException

findPathMatchingJarResources

protected org.springframework.core.io.Resource[] findPathMatchingJarResources(String locationPattern)


Copyright © 2012. All Rights Reserved.