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
loggerFields inherited from interface org.springframework.beans.factory.FactoryBean
OBJECT_TYPE_ATTRIBUTE -
Constructor Summary
ConstructorsConstructorDescriptionWebContentInterceptorFactory(org.springframework.http.CacheControl cacheControl, String[] cachedPaths, String[] alwaysRevalidatePaths) -
Method Summary
Modifier and TypeMethodDescriptionprotected org.springframework.web.servlet.mvc.WebContentInterceptorClass<?> Methods inherited from class org.springframework.beans.factory.config.AbstractFactoryBean
afterPropertiesSet, destroy, destroyInstance, getBeanFactory, getBeanTypeConverter, getEarlySingletonInterfaces, getObject, isSingleton, setBeanClassLoader, setBeanFactory, setSingleton
-
Constructor Details
-
WebContentInterceptorFactory
@ConstructorProperties({"cacheControl","cachedPaths","alwaysRevalidatePaths"}) public WebContentInterceptorFactory(org.springframework.http.CacheControl cacheControl, String[] cachedPaths, String[] alwaysRevalidatePaths)
-
-
Method Details
-
getObjectType
- Specified by:
getObjectTypein interfaceorg.springframework.beans.factory.FactoryBean<org.springframework.web.servlet.mvc.WebContentInterceptor>- Specified by:
getObjectTypein classorg.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:
createInstancein classorg.springframework.beans.factory.config.AbstractFactoryBean<org.springframework.web.servlet.mvc.WebContentInterceptor>- Throws:
Exception
-