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(ClusteredImplementationBeanRegistry clusteredImplementationBeanRegistry, ClusterManager clusterManager)
           
 
Method Summary
 void afterPropertiesSet()
           
protected  T createInstance()
           
 java.lang.Class getObjectType()
           
 void setDefaultBeanType(java.lang.Class<? extends T> defaultBeanType)
           
 void setTargetBeanType(java.lang.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(ClusteredImplementationBeanRegistry clusteredImplementationBeanRegistry,
                               ClusterManager clusterManager)
Method Detail

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.