Package org.cyclos.impl.utils.cache
Class CacheHandlerFactoryBean
- java.lang.Object
-
- org.springframework.beans.factory.config.AbstractFactoryBean<CacheHandlerImplementor>
-
- org.cyclos.impl.utils.cache.CacheHandlerFactoryBean
-
- All Implemented Interfaces:
Aware,BeanClassLoaderAware,BeanFactoryAware,DisposableBean,FactoryBean<CacheHandlerImplementor>,InitializingBean
@Component public class CacheHandlerFactoryBean extends AbstractFactoryBean<CacheHandlerImplementor>
FactoryBeanwhich exposesClusterHandler.getCacheHandler()as a bean
-
-
Field Summary
-
Fields inherited from class org.springframework.beans.factory.config.AbstractFactoryBean
logger
-
Fields inherited from interface org.springframework.beans.factory.FactoryBean
OBJECT_TYPE_ATTRIBUTE
-
-
Constructor Summary
Constructors Constructor Description CacheHandlerFactoryBean()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected CacheHandlerImplementorcreateInstance()protected voiddestroyInstance(CacheHandlerImplementor instance)Class<?>getObjectType()-
Methods inherited from class org.springframework.beans.factory.config.AbstractFactoryBean
afterPropertiesSet, destroy, getBeanFactory, getBeanTypeConverter, getEarlySingletonInterfaces, getObject, isSingleton, setBeanClassLoader, setBeanFactory, setSingleton
-
-
-
-
Method Detail
-
getObjectType
public Class<?> getObjectType()
- Specified by:
getObjectTypein interfaceFactoryBean<CacheHandlerImplementor>- Specified by:
getObjectTypein classAbstractFactoryBean<CacheHandlerImplementor>
-
createInstance
protected CacheHandlerImplementor createInstance() throws Exception
- Specified by:
createInstancein classAbstractFactoryBean<CacheHandlerImplementor>- Throws:
Exception
-
destroyInstance
protected void destroyInstance(CacheHandlerImplementor instance) throws Exception
- Overrides:
destroyInstancein classAbstractFactoryBean<CacheHandlerImplementor>- Throws:
Exception
-
-