|
spring-context | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.springframework.cache.concurrent.ConcurrentMapCacheFactoryBean
public class ConcurrentMapCacheFactoryBean
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 Summary | |
|---|---|
ConcurrentMapCacheFactoryBean()
|
|
| Method Summary | |
|---|---|
void |
afterPropertiesSet()
|
ConcurrentMapCache |
getObject()
|
java.lang.Class<?> |
getObjectType()
|
boolean |
isSingleton()
|
void |
setAllowNullValues(boolean allowNullValues)
Set whether to allow null values
(adapting them to an internal null holder value). |
void |
setBeanName(java.lang.String beanName)
|
void |
setName(java.lang.String name)
Specify the name of the cache. |
void |
setStore(java.util.concurrent.ConcurrentMap<java.lang.Object,java.lang.Object> store)
Specify the ConcurrentMap to use as an internal store (possibly pre-populated). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ConcurrentMapCacheFactoryBean()
| Method Detail |
|---|
public void setName(java.lang.String name)
Default is "" (empty String).
public void setStore(java.util.concurrent.ConcurrentMap<java.lang.Object,java.lang.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(java.lang.String beanName)
setBeanName in interface org.springframework.beans.factory.BeanNameAwarepublic void afterPropertiesSet()
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanpublic ConcurrentMapCache getObject()
getObject in interface org.springframework.beans.factory.FactoryBean<ConcurrentMapCache>public java.lang.Class<?> getObjectType()
getObjectType in interface org.springframework.beans.factory.FactoryBean<ConcurrentMapCache>public boolean isSingleton()
isSingleton in interface org.springframework.beans.factory.FactoryBean<ConcurrentMapCache>
|
spring-context | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||