org.yestech.cache.spring
Class TerracottaCacheFactoryBean
java.lang.Object
org.yestech.cache.spring.TerracottaCacheFactoryBean
- All Implemented Interfaces:
- org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.FactoryBean, org.springframework.beans.factory.InitializingBean
- Direct Known Subclasses:
- PojoCacheFactoryBean, TreeMapCacheFactoryBean
public abstract class TerracottaCacheFactoryBean
- extends Object
- implements org.springframework.beans.factory.FactoryBean, org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.DisposableBean
- Version:
- $Revision: $
- Author:
- Artie Copeland
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TerracottaCacheFactoryBean
public TerracottaCacheFactoryBean()
setCacheName
public void setCacheName(String cacheName)
- Set a name for which to retrieve or create a cache instance.
Default is the bean name of this EhCacheFactoryBean.
getCacheName
public String getCacheName()
getCache
public org.tc.cache.ITerracottaCache getCache()
afterPropertiesSet
public void afterPropertiesSet()
throws IOException
- Specified by:
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
- Throws:
IOException
getCacheInstance
protected abstract org.tc.cache.ITerracottaCache getCacheInstance()
getObject
public Object getObject()
- Specified by:
getObject in interface org.springframework.beans.factory.FactoryBean
getObjectType
public Class getObjectType()
- Specified by:
getObjectType in interface org.springframework.beans.factory.FactoryBean
getCacheType
protected abstract Class<? extends org.tc.cache.ITerracottaCache> getCacheType()
isSingleton
public boolean isSingleton()
- Specified by:
isSingleton in interface org.springframework.beans.factory.FactoryBean
destroy
public void destroy()
throws Exception
- Specified by:
destroy in interface org.springframework.beans.factory.DisposableBean
- Throws:
Exception
Copyright © 2010 YES Technology Association. All Rights Reserved.