GigaSpaces XAP 7.0 API

org.openspaces.core.space.mode.registry
Class ModeAnnotationRegistryPostProcessor

java.lang.Object
  extended by org.openspaces.core.space.mode.registry.ModeAnnotationRegistryPostProcessor
All Implemented Interfaces:
BeanPostProcessor, ApplicationContextAware

public class ModeAnnotationRegistryPostProcessor
extends Object
implements BeanPostProcessor, ApplicationContextAware

Scans the bean's methods for the annotations PreBackup, PostBackup, PrePrimary and PostPrimary and registers them in the ModeAnnotationRegistry.

Author:
shaiw

Constructor Summary
ModeAnnotationRegistryPostProcessor()
           
 
Method Summary
 Object postProcessAfterInitialization(Object bean, String beanName)
           
 Object postProcessBeforeInitialization(Object bean, String beanName)
           
 void setApplicationContext(ApplicationContext applicationContext)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ModeAnnotationRegistryPostProcessor

public ModeAnnotationRegistryPostProcessor()
Method Detail

postProcessAfterInitialization

public Object postProcessAfterInitialization(Object bean,
                                             String beanName)
                                      throws BeansException
Specified by:
postProcessAfterInitialization in interface BeanPostProcessor
Throws:
BeansException

postProcessBeforeInitialization

public Object postProcessBeforeInitialization(Object bean,
                                              String beanName)
                                       throws BeansException
Specified by:
postProcessBeforeInitialization in interface BeanPostProcessor
Throws:
BeansException

setApplicationContext

public void setApplicationContext(ApplicationContext applicationContext)
                           throws BeansException
Specified by:
setApplicationContext in interface ApplicationContextAware
Throws:
BeansException

GigaSpaces XAP 7.0 API

Copyright © GigaSpaces.