com.atlassian.confluence.cluster
Class ClusterAwareFactoryBean<T>

java.lang.Object
  extended by org.springframework.beans.factory.config.AbstractFactoryBean
      extended by 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

Field Summary
 
Fields inherited from class org.springframework.beans.factory.config.AbstractFactoryBean
logger
 
Constructor Summary
ClusterAwareFactoryBean(ClusterManager clusterManager)
           
 
Method Summary
 void afterPropertiesSet()
           
protected  T createInstance()
           
 Class getObjectType()
           
 void setDefaultBeanType(Class<? extends T> defaultBeanType)
           
 void setTargetBeanType(Class<T> targetBeanType)
           
 
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
 

Constructor Detail

ClusterAwareFactoryBean

public ClusterAwareFactoryBean(ClusterManager clusterManager)
Method Detail

getObjectType

public 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 Exception
Specified by:
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
Overrides:
afterPropertiesSet in class org.springframework.beans.factory.config.AbstractFactoryBean
Throws:
Exception

setTargetBeanType

public void setTargetBeanType(Class<T> targetBeanType)

setDefaultBeanType

public void setDefaultBeanType(Class<? extends T> defaultBeanType)

createInstance

protected T createInstance()
                    throws Exception
Specified by:
createInstance in class org.springframework.beans.factory.config.AbstractFactoryBean
Throws:
Exception


Copyright © 2003–2015 Atlassian. All rights reserved.