Class SimpleMapResourceLoader

  • All Implemented Interfaces:
    org.springframework.core.io.ResourceLoader

    public class SimpleMapResourceLoader
    extends java.lang.Object
    implements org.springframework.core.io.ResourceLoader
    Simple implementation of the ResourceLoader interface that uses a Map to load resources.
    Since:
    2.0
    • Field Summary

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

        CLASSPATH_URL_PREFIX
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.ClassLoader getClassLoader()  
      org.springframework.core.io.Resource getResource​(java.lang.String location)  
      java.util.Map<java.lang.String,​org.springframework.core.io.Resource> getResources()  
      • Methods inherited from class java.lang.Object

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

      • SimpleMapResourceLoader

        public SimpleMapResourceLoader()
    • Method Detail

      • getResources

        public java.util.Map<java.lang.String,​org.springframework.core.io.Resource> getResources()
      • getResource

        public org.springframework.core.io.Resource getResource​(java.lang.String location)
        Specified by:
        getResource in interface org.springframework.core.io.ResourceLoader
      • getClassLoader

        public java.lang.ClassLoader getClassLoader()
        Specified by:
        getClassLoader in interface org.springframework.core.io.ResourceLoader