spring-framework / org.springframework.cache.ehcache / EhCacheManagerFactoryBean / setAcceptExisting

setAcceptExisting

open fun setAcceptExisting(acceptExisting: Boolean): Unit

Set whether an existing EhCache CacheManager of the same name will be accepted for this EhCacheManagerFactoryBean setup. Default is "false".

Typically used in combination with "cacheManagerName" but will simply work with the default CacheManager name if none specified. All references to the same CacheManager name (or the same default) in the same ClassLoader space will share the specified CacheManager then.

See Also
#setCacheManagerNamenet.sf.ehcache.CacheManager#getCacheManager(String)net.sf.ehcache.CacheManager#CacheManager()