ApplicationEventPublisher

Interface that encapsulates event publication functionality. Serves as super-interface for {@link ApplicationContext}.

@author Juergen Hoeller @author Stephane Nicoll @see ApplicationContext @see ApplicationEventPublisherAware @see hunt.framework.context.ApplicationEvent @see hunt.framework.context.event.EventPublicationInterceptor

Members

Functions

publishEvent
void publishEvent(ApplicationEvent event)

Notify all <strong>matching</strong> listeners registered with this application of an application event. Events may be framework events (such as RequestHandledEvent) or application-specific events. @param event the event to publish @see hunt.framework.web.context.support.RequestHandledEvent

publishEvent
void publishEvent(Object event)

Notify all <strong>matching</strong> listeners registered with this application of an event. <p>If the specified {@code event} is not an {@link ApplicationEvent}, it is wrapped in a {@link PayloadApplicationEvent}. @param event the event to publish @since 4.2 @see PayloadApplicationEvent

Meta