Class InfinispanDefaultCacheFactoryBean<K,V> 
- All Implemented Interfaces:
- org.springframework.beans.factory.DisposableBean,- org.springframework.beans.factory.FactoryBean<Cache<K,,- V>> - org.springframework.beans.factory.InitializingBean
 A FactoryBeanorg.infinispan.Cacheconfigurableorg.infinispan.manager.CacheContainerCache is a Cache that uses its CacheContainer's
 default settings. This is contrary to a named Cache where select settings
 from a CacheContainer's default configuration may be overridden with settings
 specific to that Cache.
 
 In addition to creating a Cache this FactoryBean does also control that
 Cache's lifecycle by shutting it down
 when the enclosing Spring application context is closed. It is therefore advisable to
 always use this FactoryBean when creating a Cache.
 
- Author:
- Olaf Bergner
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected static final org.infinispan.commons.logging.LogFields inherited from interface org.springframework.beans.factory.FactoryBeanOBJECT_TYPE_ATTRIBUTE
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidvoiddestroy()Shuts down theorg.infinispan.Cachecreated by thisFactoryBean.booleanAlways returnstrue.voidsetInfinispanCacheContainer(CacheContainer infinispanCacheContainer) Sets theorg.infinispan.manager.CacheContainerCache
- 
Field Details- 
loggerprotected static final org.infinispan.commons.logging.Log logger
 
- 
- 
Constructor Details- 
InfinispanDefaultCacheFactoryBeanpublic InfinispanDefaultCacheFactoryBean()
 
- 
- 
Method Details- 
setInfinispanCacheContainerSets the org.infinispan.manager.CacheContainerCache- Parameters:
- infinispanCacheContainer- The- org.infinispan.manager.CacheContainer- Cache
 
- 
afterPropertiesSet- Specified by:
- afterPropertiesSetin interface- org.springframework.beans.factory.InitializingBean
- Throws:
- Exception
- See Also:
- 
- InitializingBean.afterPropertiesSet()
 
 
- 
getObject
- 
getObjectType- Specified by:
- getObjectTypein interface- org.springframework.beans.factory.FactoryBean<K>
- See Also:
- 
- FactoryBean.getObjectType()
 
 
- 
isSingletonpublic boolean isSingleton()Always returnstrue.- Specified by:
- isSingletonin interface- org.springframework.beans.factory.FactoryBean<K>
- Returns:
- Always true
- See Also:
- 
- FactoryBean.isSingleton()
 
 
- 
destroyShuts down theorg.infinispan.Cachecreated by thisFactoryBean.- Specified by:
- destroyin interface- org.springframework.beans.factory.DisposableBean
- Throws:
- Exception
- See Also:
- 
- DisposableBean.destroy()
- Cache.stop()
 
 
 
-