Package io.micronaut.spring.core.event
Class ApplicationEventPublisherAdapter
java.lang.Object
io.micronaut.spring.core.event.ApplicationEventPublisherAdapter
- All Implemented Interfaces:
org.springframework.context.ApplicationEventPublisher
public class ApplicationEventPublisherAdapter
extends Object
implements org.springframework.context.ApplicationEventPublisher
An adapter for Spring's
ApplicationEventPublisher
interface.- Since:
- 1.0
- Author:
- graemerocher
-
Constructor Summary
ConstructorDescriptionApplicationEventPublisherAdapter
(io.micronaut.context.event.ApplicationEventPublisher eventPublisher) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoid
publishEvent
(Object event) void
publishEvent
(org.springframework.context.ApplicationEvent event)
-
Constructor Details
-
ApplicationEventPublisherAdapter
public ApplicationEventPublisherAdapter(io.micronaut.context.event.ApplicationEventPublisher eventPublisher) Constructor.- Parameters:
eventPublisher
- The application event publisher
-
-
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
-