org.springframework.context.event
Class EventPublicationInterceptor
org.springframework.context.support.ApplicationObjectSupport
|
+--org.springframework.context.event.EventPublicationInterceptor
- public class EventPublicationInterceptor
- extends ApplicationObjectSupport
- implements MethodInterceptor
Interceptor that knows how to publish ApplicationEvents to all
ApplicationListeners registered with ApplicationContext
- Author:
- Dmitriy Kopylenko
- Version: $Id: EventPublicationInterceptor.java,v 1.2 2003/10/23 18:45:26 uid112313 Exp $
| Method Summary |
Object | invoke(MethodInvocation invocation) |
void | setApplicationEventClass(Class applicationEventClass) Set the application event class to publish. |
invoke
public Object invoke(MethodInvocation invocation)
throws java.lang.Throwable
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.
to Class java.lang.Class