org.springframework.osgi.io
Class OsgiBundleResourcePatternResolver
java.lang.Object
org.springframework.core.io.support.PathMatchingResourcePatternResolver
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
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 |
OsgiBundleResourcePatternResolver
public OsgiBundleResourcePatternResolver(Bundle bundle)
OsgiBundleResourcePatternResolver
public OsgiBundleResourcePatternResolver(ResourceLoader resourceLoader)
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.