Class ClassRelativeResourcePatternResolver

  • All Implemented Interfaces:
    org.springframework.core.io.ResourceLoader, org.springframework.core.io.support.ResourcePatternResolver

    public class ClassRelativeResourcePatternResolver
    extends org.springframework.core.io.support.PathMatchingResourcePatternResolver
    Attempts to limit classpath searching to only locations relative to the given class
    Since:
    3.1.13
    • Field Summary

      • Fields inherited from interface org.springframework.core.io.ResourceLoader

        CLASSPATH_URL_PREFIX
      • Fields inherited from interface org.springframework.core.io.support.ResourcePatternResolver

        CLASSPATH_ALL_URL_PREFIX
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void addAllClassLoaderJarRoots​(java.lang.ClassLoader classLoader, java.util.Set<org.springframework.core.io.Resource> result)  
      • Methods inherited from class org.springframework.core.io.support.PathMatchingResourcePatternResolver

        addClassPathManifestEntries, convertClassLoaderURL, determineRootDir, doFindAllClassPathResources, doFindMatchingFileSystemResources, doFindPathMatchingFileResources, doFindPathMatchingJarResources, doRetrieveMatchingFiles, findAllClassPathResources, findPathMatchingResources, getClassLoader, getJarFile, getPathMatcher, getResource, getResourceLoader, getResources, isJarResource, listDirectory, resolveRootDirResource, retrieveMatchingFiles, setPathMatcher
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ClassRelativeResourcePatternResolver

        public ClassRelativeResourcePatternResolver​(java.lang.Class clazz)
    • Method Detail

      • addAllClassLoaderJarRoots

        protected void addAllClassLoaderJarRoots​(java.lang.ClassLoader classLoader,
                                                 java.util.Set<org.springframework.core.io.Resource> result)
        Overrides:
        addAllClassLoaderJarRoots in class org.springframework.core.io.support.PathMatchingResourcePatternResolver