Class ContentStoreResourceLoader

java.lang.Object
org.springframework.core.io.DefaultResourceLoader
org.craftercms.engine.util.spring.ContentStoreResourceLoader
All Implemented Interfaces:
org.springframework.core.io.ResourceLoader

public class ContentStoreResourceLoader extends org.springframework.core.io.DefaultResourceLoader
ResourceLoader that resolves paths a Crafter content store resource.
Author:
avasquez
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.springframework.core.io.DefaultResourceLoader

    org.springframework.core.io.DefaultResourceLoader.ClassPathContextResource
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected SiteContext
     

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

    CLASSPATH_URL_PREFIX
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected org.springframework.core.io.Resource
     

    Methods inherited from class org.springframework.core.io.DefaultResourceLoader

    addProtocolResolver, clearResourceCaches, getClassLoader, getProtocolResolvers, getResource, getResourceCache, setClassLoader

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • ContentStoreResourceLoader

      public ContentStoreResourceLoader(SiteContext siteContext)
  • Method Details

    • getResourceByPath

      protected org.springframework.core.io.Resource getResourceByPath(String path)
      Overrides:
      getResourceByPath in class org.springframework.core.io.DefaultResourceLoader