Package org.springframework.context
Interface ApplicationEventPublisher
- All Known Subinterfaces:
ApplicationContext
,ConfigurableApplicationContext
,ConfigurablePortletApplicationContext
,ConfigurableWebApplicationContext
,WebApplicationContext
- All Known Implementing Classes:
AbstractApplicationContext
,AbstractRefreshableApplicationContext
,AbstractRefreshableConfigApplicationContext
,AbstractRefreshablePortletApplicationContext
,AbstractRefreshableWebApplicationContext
,AbstractXmlApplicationContext
,AnnotationConfigApplicationContext
,AnnotationConfigWebApplicationContext
,ClassPathXmlApplicationContext
,FileSystemXmlApplicationContext
,GenericApplicationContext
,GenericGroovyApplicationContext
,GenericWebApplicationContext
,GenericXmlApplicationContext
,GroovyWebApplicationContext
,ResourceAdapterApplicationContext
,StaticApplicationContext
,StaticPortletApplicationContext
,StaticWebApplicationContext
,XmlPortletApplicationContext
,XmlWebApplicationContext
public interface ApplicationEventPublisher
Interface that encapsulates event publication functionality. Serves as super-interface forApplicationContext
.- Since:
- 1.1.1
- Author:
- Juergen Hoeller, Stephane Nicoll
- See Also:
ApplicationContext
,ApplicationEventPublisherAware
,ApplicationEvent
,EventPublicationInterceptor
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
publishEvent(Object event)
Notify all matching listeners registered with this application of an event.void
publishEvent(ApplicationEvent event)
Notify all matching listeners registered with this application of an application event.
Method Detail
publishEvent
void publishEvent(ApplicationEvent event)
Notify all matching listeners registered with this application of an application event. Events may be framework events (such as RequestHandledEvent) or application-specific events.- Parameters:
event
- the event to publish- See Also:
RequestHandledEvent
publishEvent
void publishEvent(Object event)
Notify all matching listeners registered with this application of an event.If the specified
event
is not anApplicationEvent
, it is wrapped in aPayloadApplicationEvent
.- Parameters:
event
- the event to publish- Since:
- 4.2
- See Also:
PayloadApplicationEvent