public class InfinispanDefaultCacheFactoryBean<K,V> extends Object implements org.springframework.beans.factory.FactoryBean<org.infinispan.Cache<K,V>>, org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.DisposableBean
A for creating a
native default Infinispan FactoryBean
, delegating to a org.infinispan.Cacheconfigurable.
A default org.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.
| 限定符和类型 | 字段和说明 |
|---|---|
protected org.infinispan.commons.logging.Log |
logger |
| 构造器和说明 |
|---|
InfinispanDefaultCacheFactoryBean() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
afterPropertiesSet() |
void |
destroy()
Shuts down the
org.infinispan.Cache created by this FactoryBean. |
org.infinispan.Cache<K,V> |
getObject() |
Class<? extends org.infinispan.Cache> |
getObjectType() |
boolean |
isSingleton()
Always returns
true. |
void |
setInfinispanCacheContainer(org.infinispan.manager.CacheContainer infinispanCacheContainer)
Sets the
to be used for creating our
instance. |
public void setInfinispanCacheContainer(org.infinispan.manager.CacheContainer infinispanCacheContainer)
Sets the to be used for creating our
org.infinispan.manager.CacheContainer instance. Note that this is a
mandatory property.
Cache
infinispanCacheContainer - The org.infinispan.manager.CacheContainer to be used for creating our
Cache instancepublic void afterPropertiesSet()
throws Exception
afterPropertiesSet 在接口中 org.springframework.beans.factory.InitializingBeanExceptionInitializingBean.afterPropertiesSet()public Class<? extends org.infinispan.Cache> getObjectType()
public boolean isSingleton()
true.Copyright © 2017 airlenet. All rights reserved.