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 ApplicationEvents.
Author:
Jon Brisbin, Oliver Gierke
  • Constructor Details

    • AnnotatedEventHandlerInvoker

      public AnnotatedEventHandlerInvoker()
  • Method Details

    • onApplicationEvent

      public void onApplicationEvent(RepositoryEvent event)
      Specified by:
      onApplicationEvent in interface org.springframework.context.ApplicationListener<RepositoryEvent>
    • postProcessBeforeInitialization

      public Object postProcessBeforeInitialization(Object bean, String beanName) throws org.springframework.beans.BeansException
      Specified by:
      postProcessBeforeInitialization in interface org.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 interface org.springframework.beans.factory.config.BeanPostProcessor
      Throws:
      org.springframework.beans.BeansException