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 a
CacheControl instance- Since:
- 4.0.0
- Author:
- joseross
-
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
Constructors -
Method Summary
Methods inherited from class org.springframework.beans.factory.config.AbstractFactoryBean
afterPropertiesSet, destroy, destroyInstance, getBeanFactory, getBeanTypeConverter, getEarlySingletonInterfaces, getObject, isSingleton, setBeanClassLoader, setBeanFactory, setSingleton
-
Constructor Details
-
CacheControlFactory
@ConstructorProperties({"enabled","maxAge"}) public CacheControlFactory(boolean enabled, long maxAge)
-
-
Method Details
-
getObjectType
- Specified by:
getObjectTypein interfaceorg.springframework.beans.factory.FactoryBean<org.springframework.http.CacheControl>- Specified by:
getObjectTypein classorg.springframework.beans.factory.config.AbstractFactoryBean<org.springframework.http.CacheControl>
-
createInstance
- Specified by:
createInstancein classorg.springframework.beans.factory.config.AbstractFactoryBean<org.springframework.http.CacheControl>- Throws:
Exception
-