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) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.context.ApplicationListener
supportsAsyncExecution
-
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
-