open class ConcurrentMapCacheFactoryBean : FactoryBean<ConcurrentMapCache>, BeanNameAware, 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 org.springframework.cache.support.SimpleCacheManager or dynamically through ConcurrentMapCacheManager.
Author
Costin Leau
Author
Juergen Hoeller
Since
3.1
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 org.springframework.cache.support.SimpleCacheManager or dynamically through ConcurrentMapCacheManager. |
open fun afterPropertiesSet(): Unit |
|
open fun getObject(): ConcurrentMapCache |
|
open fun getObjectType(): Class<*> |
|
open fun isSingleton(): Boolean |
|
open fun setAllowNullValues(allowNullValues: Boolean): Unit
Set whether to allow Default is "true". |
|
open fun setBeanName(beanName: String): Unit |
|
open fun setName(name: String): Unit
Specify the name of the cache. Default is "" (empty String). |
|
open fun setStore(store: ConcurrentMap<Any, Any>): Unit
Specify the ConcurrentMap to use as an internal store (possibly pre-populated). Default is a standard java.util.concurrent.ConcurrentHashMap. |