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.FactoryBeangetObjectType in class org.springframework.beans.factory.config.AbstractFactoryBeanpublic void afterPropertiesSet()
throws Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanafterPropertiesSet in class org.springframework.beans.factory.config.AbstractFactoryBeanExceptionCopyright © 2003–2015 Atlassian. All rights reserved.