FactoryBean that exposes an EHCache
net.sf.ehcache.CacheManager instance
(independent or shared), configured from a specified config location.
If no config location is specified, a CacheManager will be configured from
"ehcache.xml" in the root of the class path (that is, default EHCache initialization
- as defined in the EHCache docs - will apply).
Setting up a separate EhCacheManagerFactoryBean is also advisable when using
EhCacheFactoryBean, as it provides a (by default) independent CacheManager instance
and cares for proper shutdown of the CacheManager. EhCacheManagerFactoryBean is
also necessary for loading EHCache configuration from a non-default config location.
Note: As of Spring 2.0, this FactoryBean will by default create an independent
CacheManager instance, which requires EHCache 1.2 or higher. Set the "shared"
flag to "true" to create a CacheManager instance that is shared at the VM level
(which is also compatible with EHCache 1.1).
author: Dmitriy Kopylenko author: Juergen Hoeller since: 1.1.1 See Also: EhCacheManagerFactoryBean.setConfigLocation See Also: EhCacheManagerFactoryBean.setShared See Also: EhCacheFactoryBean See Also: net.sf.ehcache.CacheManager |