Class AnnotatedEventHandlerInvoker
java.lang.Object
org.springframework.data.rest.core.event.AnnotatedEventHandlerInvoker
- All Implemented Interfaces:
EventListener
,BeanPostProcessor
,ApplicationListener<RepositoryEvent>
public class AnnotatedEventHandlerInvoker
extends Object
implements ApplicationListener<RepositoryEvent>, 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 interfaceApplicationListener<RepositoryEvent>
-
postProcessBeforeInitialization
- Specified by:
postProcessBeforeInitialization
in interfaceBeanPostProcessor
- Throws:
BeansException
-
postProcessAfterInitialization
- Specified by:
postProcessAfterInitialization
in interfaceBeanPostProcessor
- Throws:
BeansException
-