open class EventPublicationInterceptor : MethodInterceptor, ApplicationEventPublisherAware, InitializingBean
MethodInterceptor that publishes an ApplicationEvent
to all ApplicationListeners
registered with an ApplicationEventPublisher
after each successful method invocation.
Note that this interceptor is only capable of publishing stateless events configured via the "applicationEventClass"
property.
Author
Dmitriy Kopylenko
Author
Juergen Hoeller
Author
Rick Evans
See Also
#setApplicationEventClassorg.springframework.context.ApplicationEventorg.springframework.context.ApplicationListenerorg.springframework.context.ApplicationEventPublisherorg.springframework.context.ApplicationContext
EventPublicationInterceptor()
MethodInterceptor that publishes an Note that this interceptor is only capable of publishing stateless events configured via the |
open fun afterPropertiesSet(): Unit |
|
open fun invoke(invocation: MethodInvocation): Any |
|
open fun setApplicationEventClass(applicationEventClass: Class<*>): Unit
Set the application event class to publish. The event class must have a constructor with a single |
|
open fun setApplicationEventPublisher(applicationEventPublisher: ApplicationEventPublisher): Unit |