Class WebContentInterceptorFactory

java.lang.Object
org.springframework.beans.factory.config.AbstractFactoryBean<org.springframework.web.servlet.mvc.WebContentInterceptor>
org.craftercms.studio.impl.v2.utils.spring.WebContentInterceptorFactory
All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanClassLoaderAware, org.springframework.beans.factory.BeanFactoryAware, org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.FactoryBean<org.springframework.web.servlet.mvc.WebContentInterceptor>, org.springframework.beans.factory.InitializingBean

public class WebContentInterceptorFactory extends org.springframework.beans.factory.config.AbstractFactoryBean<org.springframework.web.servlet.mvc.WebContentInterceptor>
AbstractFactoryBean implementation to configure a WebContentInterceptor instance to handle paths including etag header.
Since:
4.0.3
Author:
jmendeza
  • Field Summary

    Fields inherited from class org.springframework.beans.factory.config.AbstractFactoryBean

    logger

    Fields inherited from interface org.springframework.beans.factory.FactoryBean

    OBJECT_TYPE_ATTRIBUTE
  • Constructor Summary

    Constructors
    Constructor
    Description
    WebContentInterceptorFactory(org.springframework.http.CacheControl cacheControl, String[] cachedPaths, String[] alwaysRevalidatePaths)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected org.springframework.web.servlet.mvc.WebContentInterceptor
     
     

    Methods inherited from class org.springframework.beans.factory.config.AbstractFactoryBean

    afterPropertiesSet, destroy, destroyInstance, getBeanFactory, getBeanTypeConverter, getEarlySingletonInterfaces, getObject, isSingleton, setBeanClassLoader, setBeanFactory, setSingleton

    Methods inherited from class java.lang.Object

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

    • WebContentInterceptorFactory

      @ConstructorProperties({"cacheControl","cachedPaths","alwaysRevalidatePaths"}) public WebContentInterceptorFactory(org.springframework.http.CacheControl cacheControl, String[] cachedPaths, String[] alwaysRevalidatePaths)
  • Method Details

    • getObjectType

      public Class<?> getObjectType()
      Specified by:
      getObjectType in interface org.springframework.beans.factory.FactoryBean<org.springframework.web.servlet.mvc.WebContentInterceptor>
      Specified by:
      getObjectType in class org.springframework.beans.factory.config.AbstractFactoryBean<org.springframework.web.servlet.mvc.WebContentInterceptor>
    • createInstance

      @NonNull protected org.springframework.web.servlet.mvc.WebContentInterceptor createInstance() throws Exception
      Specified by:
      createInstance in class org.springframework.beans.factory.config.AbstractFactoryBean<org.springframework.web.servlet.mvc.WebContentInterceptor>
      Throws:
      Exception