org.springframework.context.event
Class EventPublicationInterceptor

public class EventPublicationInterceptor
implements MethodInterceptor, ApplicationEventPublisherAware, InitializingBean
Interceptor that publishes an ApplicationEvent to all ApplicationListeners registered with an ApplicationEventPublisher (typically an ApplicationContext), after each successful method invocation.

Note that this interceptor is only capable of publishing stateless events configured statically via the "applicationEventClass" property.

SinceNot specified.
VersionNot specified.
AuthorDmitriy Kopylenko, Juergen Hoeller
Wiki javadoc Use textile entry format.
Add your comments here.
Method Summary
void afterPropertiesSet()
No description provided.
Object invoke( MethodInvocation invocation )
No description provided.
void setApplicationEventClass( Class applicationEventClass )
Set the application event class to publish.
void setApplicationEventPublisher( ApplicationEventPublisher applicationEventPublisher )
No description provided.
EventPublicationInterceptor
public EventPublicationInterceptor ( )
No description provided.
Wiki javadoc Use textile entry format.
Add your comments here.
afterPropertiesSet
public void afterPropertiesSet ( )
No description provided.
Implements method in InitializingBean
Returns void No description provided.
Wiki javadoc Use textile entry format.
Add your comments here.
invoke
public Object invoke ( MethodInvocation invocation )
throws
No description provided.
Implements method in MethodInterceptor
Parameters
TypeNameDescription
MethodInvocation invocation No description provided.
Exceptions
Throwable No description provided.
Wiki javadoc Use textile entry format.
Add your comments here.
setApplicationEventClass
public void setApplicationEventClass ( Class applicationEventClass )
Set the application event class to publish.

The event class must have a constructor with a single Object argument for the event source. The interceptor will pass in the invoked object.

Parameters
TypeNameDescription
Class applicationEventClass No description provided.
Returns void No description provided.
Wiki javadoc Use textile entry format.
Add your comments here.
setApplicationEventPublisher
public void setApplicationEventPublisher ( ApplicationEventPublisher applicationEventPublisher )
No description provided.
Implements method in ApplicationEventPublisherAware
Parameters
TypeNameDescription
ApplicationEventPublisher applicationEventPublisher No description provided.
Returns void No description provided.
Wiki javadoc Use textile entry format.
Add your comments here.