org.riotfamily.cachius.spring
Class CacheFactoryBean

java.lang.Object
  extended by org.riotfamily.cachius.CacheFactory
      extended by 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.


Field Summary
 
Fields inherited from class org.riotfamily.cachius.CacheFactory
DEFAULT_CACHE_DIR_NAME, DEFAULT_CAPACITY
 
Constructor Summary
CacheFactoryBean()
           
 
Method Summary
 void afterPropertiesSet()
           
 void destroy()
           
 Object getObject()
           
 Class<?> getObjectType()
           
 boolean isSingleton()
           
 void setBeanName(String name)
           
 void setCacheDirName(String cacheDirName)
           
 void setServletContext(ServletContext servletContext)
           
 
Methods inherited from class org.riotfamily.cachius.CacheFactory
createInstance, deserialize, getCacheDir, isRestore, persist, setCacheDir, setCapacity, setEnabled, setRestore
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CacheFactoryBean

public CacheFactoryBean()
Method Detail

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