Class HibernateClusterAwareCacheManagerFactory
- java.lang.Object
-
- org.springframework.beans.factory.config.AbstractFactoryBean<com.atlassian.cache.CacheManager>
-
- com.atlassian.confluence.impl.cache.hibernate.HibernateClusterAwareCacheManagerFactory
-
- All Implemented Interfaces:
org.springframework.beans.factory.Aware,org.springframework.beans.factory.BeanClassLoaderAware,org.springframework.beans.factory.BeanFactoryAware,org.springframework.beans.factory.DisposableBean,org.springframework.beans.factory.FactoryBean<com.atlassian.cache.CacheManager>,org.springframework.beans.factory.InitializingBean
public class HibernateClusterAwareCacheManagerFactory extends org.springframework.beans.factory.config.AbstractFactoryBean<com.atlassian.cache.CacheManager>This is just a workaround to wire our cache manager beans. Without this factory,HibernateClusterAwareCacheManagershares same type with ehCacheManager thus will fail creation of cacheManagerInternal. See ClusterAwareFactoryBean#createInstance and BeanFactoryUtils#beanNamesForTypeIncludingAncestors- Since:
- 6.14
-
-
Constructor Summary
Constructors Constructor Description HibernateClusterAwareCacheManagerFactory(com.atlassian.cache.CacheManager delegate, ClusterManager clusterManager, ClusterEventWrapperService clusterEventWrapperService, com.atlassian.event.api.EventPublisher eventPublisher, org.hibernate.SessionFactory sessionFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected com.atlassian.cache.CacheManagercreateInstance()Class<?>getObjectType()
-
-
-
Constructor Detail
-
HibernateClusterAwareCacheManagerFactory
public HibernateClusterAwareCacheManagerFactory(com.atlassian.cache.CacheManager delegate, ClusterManager clusterManager, ClusterEventWrapperService clusterEventWrapperService, com.atlassian.event.api.EventPublisher eventPublisher, org.hibernate.SessionFactory sessionFactory)
-
-
Method Detail
-
getObjectType
public Class<?> getObjectType()
- Specified by:
getObjectTypein interfaceorg.springframework.beans.factory.FactoryBean<com.atlassian.cache.CacheManager>- Specified by:
getObjectTypein classorg.springframework.beans.factory.config.AbstractFactoryBean<com.atlassian.cache.CacheManager>
-
-