Class ClusterInfoBeanPostProcessor

java.lang.Object
org.openspaces.core.cluster.ClusterInfoBeanPostProcessor
All Implemented Interfaces:
org.springframework.beans.factory.config.BeanPostProcessor

public class ClusterInfoBeanPostProcessor extends Object implements org.springframework.beans.factory.config.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 Details

    • ClusterInfoBeanPostProcessor

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

    • postProcessBeforeInitialization

      public Object postProcessBeforeInitialization(Object bean, String beanName) throws org.springframework.beans.BeansException
      Specified by:
      postProcessBeforeInitialization in interface org.springframework.beans.factory.config.BeanPostProcessor
      Throws:
      org.springframework.beans.BeansException
    • postProcessAfterInitialization

      public Object postProcessAfterInitialization(Object bean, String beanName) throws org.springframework.beans.BeansException
      Specified by:
      postProcessAfterInitialization in interface org.springframework.beans.factory.config.BeanPostProcessor
      Throws:
      org.springframework.beans.BeansException