Class MicronautApplicationEventPublisher

java.lang.Object
io.micronaut.spring.context.event.MicronautApplicationEventPublisher
All Implemented Interfaces:
MicronautContextInternal, org.springframework.context.ApplicationEventPublisher

@Singleton @Primary @Internal public class MicronautApplicationEventPublisher extends Object implements org.springframework.context.ApplicationEventPublisher, MicronautContextInternal
Implementation of the ApplicationEventPublisher interface for Micronaut.
Author:
graemerocher
  • Constructor Details

    • MicronautApplicationEventPublisher

      public MicronautApplicationEventPublisher(io.micronaut.context.event.ApplicationEventPublisher eventPublisher)
      Default constructor.
      Parameters:
      eventPublisher - The event publisher to adapt
  • Method Details

    • publishEvent

      public void publishEvent(org.springframework.context.ApplicationEvent event)
      Specified by:
      publishEvent in interface org.springframework.context.ApplicationEventPublisher
    • publishEvent

      public void publishEvent(Object event)
      Specified by:
      publishEvent in interface org.springframework.context.ApplicationEventPublisher