org.springframework.osgi.io
Class OsgiBundleResourcePatternResolver

java.lang.Object
  extended by org.springframework.core.io.support.PathMatchingResourcePatternResolver
      extended by org.springframework.osgi.io.OsgiBundleResourcePatternResolver
All Implemented Interfaces:
ResourceLoader, ResourcePatternResolver

public class OsgiBundleResourcePatternResolver
extends PathMatchingResourcePatternResolver

OSGi-aware subclass of PathMatchingResourcePatternResolver. Can find resources in the bundle jar, bundle space or class space. See OsgiBundleResource for more information.

Author:
Costin Leau
See Also:
Bundle, OsgiBundleResource

Field Summary
 
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
OsgiBundleResourcePatternResolver(Bundle bundle)
           
OsgiBundleResourcePatternResolver(ResourceLoader resourceLoader)
           
 
Method Summary
 Resource[] getResources(String locationPattern)
           
 
Methods inherited from class org.springframework.core.io.support.PathMatchingResourcePatternResolver
convertClassLoaderURL, determineRootDir, doFindMatchingFileSystemResources, doFindPathMatchingFileResources, doFindPathMatchingJarResources, doRetrieveMatchingFiles, findAllClassPathResources, findPathMatchingResources, getClassLoader, getPathMatcher, getResource, getResourceLoader, isJarResource, retrieveMatchingFiles, setPathMatcher
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OsgiBundleResourcePatternResolver

public OsgiBundleResourcePatternResolver(Bundle bundle)

OsgiBundleResourcePatternResolver

public OsgiBundleResourcePatternResolver(ResourceLoader resourceLoader)
Method Detail

getResources

public Resource[] getResources(String locationPattern)
                        throws IOException
Specified by:
getResources in interface ResourcePatternResolver
Overrides:
getResources in class PathMatchingResourcePatternResolver
Throws:
IOException


Copyright © 2006-2007 Spring Framework. All Rights Reserved.