com.atlassian.confluence.cluster
Class ClusterAwareFactoryBean<T>
java.lang.Object
org.springframework.beans.factory.config.AbstractFactoryBean
com.atlassian.confluence.cluster.ClusterAwareFactoryBean<T>
- All Implemented Interfaces:
- org.springframework.beans.factory.BeanClassLoaderAware, org.springframework.beans.factory.BeanFactoryAware, org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.FactoryBean, org.springframework.beans.factory.InitializingBean
public class ClusterAwareFactoryBean<T>
- extends org.springframework.beans.factory.config.AbstractFactoryBean
A Spring FactoryBean
locates another bean in the context for a given type.
If clustering is enabled, then the selected bean must have a definition with the qualifier "clustered-implementation".
If clustering is not enabled, then any bean of the given type is acceptable.
See HibernateCacheFactory
and its implementations.
See ClusterManager.isClustered()
- Since:
- v5.5
Fields inherited from class org.springframework.beans.factory.config.AbstractFactoryBean |
logger |
Methods inherited from class org.springframework.beans.factory.config.AbstractFactoryBean |
destroy, destroyInstance, getBeanFactory, getBeanTypeConverter, getEarlySingletonInterfaces, getObject, isSingleton, setBeanClassLoader, setBeanFactory, setSingleton |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ClusterAwareFactoryBean
public ClusterAwareFactoryBean(ClusteredImplementationBeanRegistry clusteredImplementationBeanRegistry,
ClusterManager clusterManager)
getObjectType
public java.lang.Class getObjectType()
- Specified by:
getObjectType
in interface org.springframework.beans.factory.FactoryBean
- Specified by:
getObjectType
in class org.springframework.beans.factory.config.AbstractFactoryBean
afterPropertiesSet
public void afterPropertiesSet()
throws java.lang.Exception
- Specified by:
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
- Overrides:
afterPropertiesSet
in class org.springframework.beans.factory.config.AbstractFactoryBean
- Throws:
java.lang.Exception
setTargetBeanType
public void setTargetBeanType(java.lang.Class<T> targetBeanType)
setDefaultBeanType
public void setDefaultBeanType(java.lang.Class<? extends T> defaultBeanType)
createInstance
protected T createInstance()
throws java.lang.Exception
- Specified by:
createInstance
in class org.springframework.beans.factory.config.AbstractFactoryBean
- Throws:
java.lang.Exception
Copyright © 2003-2014 Atlassian. All Rights Reserved.