Class AnnotatedEventHandlerInvoker
java.lang.Object
org.springframework.data.rest.core.event.AnnotatedEventHandlerInvoker
- All Implemented Interfaces:
EventListener
,org.springframework.beans.factory.config.BeanPostProcessor
,org.springframework.context.ApplicationListener<RepositoryEvent>
public class AnnotatedEventHandlerInvoker
extends Object
implements org.springframework.context.ApplicationListener<RepositoryEvent>, org.springframework.beans.factory.config.BeanPostProcessor
Component to discover annotated repository event handlers and trigger them on
ApplicationEvent
s.- Author:
- Jon Brisbin, Oliver Gierke
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
postProcessAfterInitialization
(Object bean, String beanName) postProcessBeforeInitialization
(Object bean, String beanName)
-
Constructor Details
-
AnnotatedEventHandlerInvoker
public AnnotatedEventHandlerInvoker()
-
-
Method Details
-
onApplicationEvent
- Specified by:
onApplicationEvent
in interfaceorg.springframework.context.ApplicationListener<RepositoryEvent>
-
postProcessBeforeInitialization
public Object postProcessBeforeInitialization(Object bean, String beanName) throws org.springframework.beans.BeansException - Specified by:
postProcessBeforeInitialization
in 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:
postProcessAfterInitialization
in interfaceorg.springframework.beans.factory.config.BeanPostProcessor
- Throws:
org.springframework.beans.BeansException
-