org.riotfamily.cachius.spring
Class CacheFactoryBean
java.lang.Object
org.riotfamily.cachius.CacheFactory
org.riotfamily.cachius.spring.CacheFactoryBean
- All Implemented Interfaces:
- BeanNameAware, DisposableBean, FactoryBean, InitializingBean, ServletContextAware
public class CacheFactoryBean
- extends CacheFactory
- implements FactoryBean, ServletContextAware, BeanNameAware, InitializingBean, DisposableBean
Factory that creates a new Cache
instance in the
specified directory.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CacheFactoryBean
public CacheFactoryBean()
setBeanName
public void setBeanName(String name)
- Specified by:
setBeanName
in interface BeanNameAware
setCacheDirName
public void setCacheDirName(String cacheDirName)
setServletContext
public void setServletContext(ServletContext servletContext)
- Specified by:
setServletContext
in interface ServletContextAware
afterPropertiesSet
public void afterPropertiesSet()
throws Exception
- Specified by:
afterPropertiesSet
in interface InitializingBean
- Throws:
Exception
getObjectType
public Class<?> getObjectType()
- Specified by:
getObjectType
in interface FactoryBean
isSingleton
public boolean isSingleton()
- Specified by:
isSingleton
in interface FactoryBean
getObject
public Object getObject()
throws Exception
- Specified by:
getObject
in interface FactoryBean
- Throws:
Exception
destroy
public void destroy()
throws Exception
- Specified by:
destroy
in interface DisposableBean
- Throws:
Exception