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 Summary
ConstructorDescriptionMicronautApplicationEventPublisher
(io.micronaut.context.event.ApplicationEventPublisher eventPublisher) Default constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoid
publishEvent
(Object event) void
publishEvent
(org.springframework.context.ApplicationEvent event)
-
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 interfaceorg.springframework.context.ApplicationEventPublisher
-
publishEvent
- Specified by:
publishEvent
in interfaceorg.springframework.context.ApplicationEventPublisher
-