com.atlassian.confluence.cluster
Class ClusterManagerFactoryBean

java.lang.Object
  extended by org.springframework.beans.factory.config.AbstractFactoryBean
      extended by com.atlassian.confluence.cluster.ClusterManagerFactoryBean
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 ClusterManagerFactoryBean
extends org.springframework.beans.factory.config.AbstractFactoryBean

A Spring FactoryBean which exposes a cluster-related bean by scanning the context for beans of a specified type. If none are found, then it creates a default bean. If one (and only one) bean of the target type is found, it returns that, otherwise it throws an exception. See ClusterManager and its implementations

Since:
v5.5

Field Summary
 
Fields inherited from class org.springframework.beans.factory.config.AbstractFactoryBean
logger
 
Constructor Summary
ClusterManagerFactoryBean(com.atlassian.config.ApplicationConfig applicationConfig)
           
 
Method Summary
protected  ClusterManager createInstance()
           
 Class getObjectType()
           
 
Methods inherited from class org.springframework.beans.factory.config.AbstractFactoryBean
afterPropertiesSet, 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

ClusterManagerFactoryBean

public ClusterManagerFactoryBean(com.atlassian.config.ApplicationConfig applicationConfig)
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

createInstance

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


Copyright © 2003–2015 Atlassian. All rights reserved.