public class ConcurrentMapCacheFactoryBean extends Object implements org.springframework.beans.factory.FactoryBean<ConcurrentMapCache>, org.springframework.beans.factory.BeanNameAware, org.springframework.beans.factory.InitializingBean
FactoryBean for easy configuration of a ConcurrentMapCache
 when used within a Spring container. Can be configured through bean properties;
 uses the assigned Spring bean name as the default cache name.
 Useful for testing or simple caching scenarios, typically in combination
 with SimpleCacheManager or
 dynamically through ConcurrentMapCacheManager.
| Constructor and Description | 
|---|
| ConcurrentMapCacheFactoryBean() | 
| Modifier and Type | Method and Description | 
|---|---|
| void | afterPropertiesSet() | 
| ConcurrentMapCache | getObject() | 
| Class<?> | getObjectType() | 
| boolean | isSingleton() | 
| void | setAllowNullValues(boolean allowNullValues)Set whether to allow  nullvalues
 (adapting them to an internal null holder value). | 
| void | setBeanName(String beanName) | 
| void | setName(String name)Specify the name of the cache. | 
| void | setStore(ConcurrentMap<Object,Object> store)Specify the ConcurrentMap to use as an internal store
 (possibly pre-populated). | 
public void setName(String name)
Default is "" (empty String).
public void setStore(ConcurrentMap<Object,Object> store)
Default is a standard ConcurrentHashMap.
public void setAllowNullValues(boolean allowNullValues)
null values
 (adapting them to an internal null holder value).
 Default is "true".
public void setBeanName(String beanName)
setBeanName in interface org.springframework.beans.factory.BeanNameAwarepublic void afterPropertiesSet()
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean@Nullable public ConcurrentMapCache getObject()
getObject in interface org.springframework.beans.factory.FactoryBean<ConcurrentMapCache>public Class<?> getObjectType()
getObjectType in interface org.springframework.beans.factory.FactoryBean<ConcurrentMapCache>public boolean isSingleton()
isSingleton in interface org.springframework.beans.factory.FactoryBean<ConcurrentMapCache>