Class StaticResourceLoader

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

    public class StaticResourceLoader
    extends java.lang.Object
    implements org.springframework.core.io.ResourceLoader
    A ResourceLoader that loads resources from a statically defined base resource.
    Since:
    0.5
    • 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)  
      void setBaseResource​(org.springframework.core.io.Resource baseResource)  
      • Methods inherited from class java.lang.Object

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

      • StaticResourceLoader

        public StaticResourceLoader()
    • Method Detail

      • setBaseResource

        public void setBaseResource​(org.springframework.core.io.Resource baseResource)
      • 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