GigaSpaces XAP 9.7.2 API

org.openspaces.core.cluster
Class ClusterInfoBeanPostProcessor

java.lang.Object
  extended by 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

Constructor Summary
ClusterInfoBeanPostProcessor(ClusterInfo clusterInfo)
          Constructs a new cluster info bean post processor based on the provided cluster info.
 
Method Summary
 Object postProcessAfterInitialization(Object bean, String beanName)
           
 Object postProcessBeforeInitialization(Object bean, String beanName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClusterInfoBeanPostProcessor

public ClusterInfoBeanPostProcessor(ClusterInfo clusterInfo)
Constructs a new cluster info bean post processor based on the provided cluster info.

Parameters:
clusterInfo -
Method Detail

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

GigaSpaces XAP 9.7.2 API

Copyright © GigaSpaces.