Class CacheControlFactory
- java.lang.Object
-
- org.springframework.beans.factory.config.AbstractFactoryBean<org.springframework.http.CacheControl>
-
- org.craftercms.studio.impl.v2.utils.spring.CacheControlFactory
-
- 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.http.CacheControl>
,org.springframework.beans.factory.InitializingBean
public class CacheControlFactory extends org.springframework.beans.factory.config.AbstractFactoryBean<org.springframework.http.CacheControl>
Utility class to configure aCacheControl
instance- Since:
- 4.0.0
- Author:
- joseross
-
-
Constructor Summary
Constructors Constructor Description CacheControlFactory(boolean enabled, long maxAge)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.springframework.http.CacheControl
createInstance()
Class<?>
getObjectType()
-
-
-
Constructor Detail
-
CacheControlFactory
@ConstructorProperties({"enabled","maxAge"}) public CacheControlFactory(boolean enabled, long maxAge)
-
-
Method Detail
-
getObjectType
public Class<?> getObjectType()
- Specified by:
getObjectType
in interfaceorg.springframework.beans.factory.FactoryBean<org.springframework.http.CacheControl>
- Specified by:
getObjectType
in classorg.springframework.beans.factory.config.AbstractFactoryBean<org.springframework.http.CacheControl>
-
-