org.openspaces.core.cluster
Class ClusterInfoBeanPostProcessor
java.lang.Object
org.openspaces.core.cluster.ClusterInfoBeanPostProcessor
- All Implemented Interfaces:
- BeanPostProcessor
public class ClusterInfoBeanPostProcessor
- extends Object
- implements BeanPostProcessor
A Spring BeanPostProcessor
that takes a ClusterInfo
and injects it to all the
beans that implements ClusterInfoAware
interface and to those that contain a field that
has the annotation ClusterInfoContext
}.
- Author:
- kimchy
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ClusterInfoBeanPostProcessor
public ClusterInfoBeanPostProcessor(ClusterInfo clusterInfo)
- Constructs a new cluster info bean post processor based on the provided cluster info.
- Parameters:
clusterInfo
-
postProcessBeforeInitialization
public Object postProcessBeforeInitialization(Object bean,
String beanName)
throws BeansException
- Specified by:
postProcessBeforeInitialization
in interface BeanPostProcessor
- Throws:
BeansException
postProcessAfterInitialization
public Object postProcessAfterInitialization(Object bean,
String beanName)
throws BeansException
- Specified by:
postProcessAfterInitialization
in interface BeanPostProcessor
- Throws:
BeansException
Copyright © GigaSpaces.