类 ConcurrentMapCacheFactoryBean
java.lang.Object
cn.taketoday.cache.concurrent.ConcurrentMapCacheFactoryBean
- 所有已实现的接口:
Aware,BeanNameAware,FactoryBean<ConcurrentMapCache>,InitializingBean
public class ConcurrentMapCacheFactoryBean
extends Object
implements FactoryBean<ConcurrentMapCache>, BeanNameAware, InitializingBean
FactoryBean for easy configuration of a ConcurrentMapCache
when used within a Framework container. Can be configured through bean properties;
uses the assigned Framework bean name as the default cache name.
Useful for testing or simple caching scenarios, typically in combination
with SimpleCacheManager or
dynamically through ConcurrentMapCacheManager.
- 从以下版本开始:
- 4.0
- 作者:
- Costin Leau, Juergen Hoeller
-
字段概要
从接口继承的字段 cn.taketoday.beans.factory.FactoryBean
OBJECT_TYPE_ATTRIBUTE -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明voidClass<?>booleanvoidsetAllowNullValues(boolean allowNullValues) Set whether to allownullvalues (adapting them to an internal null holder value).voidsetBeanName(String beanName) voidSpecify the name of the cache.voidsetStore(ConcurrentMap<Object, Object> store) Specify the ConcurrentMap to use as an internal store (possibly pre-populated).
-
构造器详细资料
-
ConcurrentMapCacheFactoryBean
public ConcurrentMapCacheFactoryBean()
-
-
方法详细资料
-
setName
Specify the name of the cache.Default is "" (empty String).
-
setStore
Specify the ConcurrentMap to use as an internal store (possibly pre-populated).Default is a standard
ConcurrentHashMap. -
setAllowNullValues
public void setAllowNullValues(boolean allowNullValues) Set whether to allownullvalues (adapting them to an internal null holder value).Default is "true".
-
setBeanName
- 指定者:
setBeanName在接口中BeanNameAware
-
afterPropertiesSet
public void afterPropertiesSet()- 指定者:
afterPropertiesSet在接口中InitializingBean
-
getObject
- 指定者:
getObject在接口中FactoryBean<ConcurrentMapCache>
-
getObjectType
- 指定者:
getObjectType在接口中FactoryBean<ConcurrentMapCache>
-
isSingleton
public boolean isSingleton()- 指定者:
isSingleton在接口中FactoryBean<ConcurrentMapCache>
-