public class ClusterAwareFactoryBean<T>
extends org.springframework.beans.factory.config.AbstractFactoryBean
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()
Constructor and Description |
---|
ClusterAwareFactoryBean(ClusterManager clusterManager) |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
protected T |
createInstance() |
Class |
getObjectType() |
void |
setDefaultBeanType(Class<? extends T> defaultBeanType) |
void |
setTargetBeanType(Class<T> targetBeanType) |
public ClusterAwareFactoryBean(ClusterManager clusterManager)
public Class getObjectType()
getObjectType
in interface org.springframework.beans.factory.FactoryBean
getObjectType
in class org.springframework.beans.factory.config.AbstractFactoryBean
public void afterPropertiesSet() throws Exception
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
afterPropertiesSet
in class org.springframework.beans.factory.config.AbstractFactoryBean
Exception
Copyright © 2003–2016 Atlassian. All rights reserved.