com.atlassian.crowd.acceptance.utils
Class ContextAwareEhCacheManagerFactoryBean
java.lang.Object
org.springframework.cache.ehcache.EhCacheManagerFactoryBean
com.atlassian.crowd.acceptance.utils.ContextAwareEhCacheManagerFactoryBean
- All Implemented Interfaces:
- org.springframework.beans.factory.Aware, org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.FactoryBean<net.sf.ehcache.CacheManager>, org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationContextAware
public class ContextAwareEhCacheManagerFactoryBean
- extends org.springframework.cache.ehcache.EhCacheManagerFactoryBean
- implements org.springframework.context.ApplicationContextAware
Factory bean for EhCacheManagers that name CacheManager
s after
the Id of the application context in which they are instantiated.
This factory makes it possible to re-use the same Spring bean files to instantiate multiple concurrent
application contexts without sharing the instance of CacheManager
.
Calling EhCacheManagerFactoryBean.setCacheManagerName(String)
or setting EhCacheManagerFactoryBean.setShared(boolean)
to true defeat
the purpose of this factory bean.
Fields inherited from class org.springframework.cache.ehcache.EhCacheManagerFactoryBean |
logger |
Method Summary |
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
|
Methods inherited from class org.springframework.cache.ehcache.EhCacheManagerFactoryBean |
afterPropertiesSet, destroy, getObject, getObjectType, isSingleton, setCacheManagerName, setConfigLocation, setShared |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ContextAwareEhCacheManagerFactoryBean
public ContextAwareEhCacheManagerFactoryBean()
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
throws org.springframework.beans.BeansException
- Specified by:
setApplicationContext
in interface org.springframework.context.ApplicationContextAware
- Throws:
org.springframework.beans.BeansException
Copyright © 2013 Atlassian. All Rights Reserved.