Package org.openspaces.core.cluster
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 Summary
ConstructorsConstructorDescriptionClusterInfoBeanPostProcessor(ClusterInfo clusterInfo) Constructs a new cluster info bean post processor based on the provided cluster info. -
Method Summary
Modifier and TypeMethodDescriptionpostProcessAfterInitialization(Object bean, String beanName) postProcessBeforeInitialization(Object bean, String beanName)
-
Constructor Details
-
ClusterInfoBeanPostProcessor
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:
postProcessBeforeInitializationin interfaceorg.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:
postProcessAfterInitializationin interfaceorg.springframework.beans.factory.config.BeanPostProcessor- Throws:
org.springframework.beans.BeansException
-