Save This Page
Home » spring-framework-2.5.5-with-dependencies » org.springframework » context » event » [javadoc | source]
org.springframework.context.event
public class: EventPublicationInterceptor [javadoc | source]
java.lang.Object
   org.springframework.context.event.EventPublicationInterceptor

All Implemented Interfaces:
    ApplicationEventPublisherAware, org.aopalliance.intercept.MethodInterceptor, InitializingBean

Interceptor 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.

Method from org.springframework.context.event.EventPublicationInterceptor Summary:
afterPropertiesSet,   invoke,   setApplicationEventClass,   setApplicationEventPublisher
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.springframework.context.event.EventPublicationInterceptor Detail:
 public  void afterPropertiesSet() throws Exception 
 public Object invoke(MethodInvocation invocation) throws Throwable 
 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.

 public  void setApplicationEventPublisher(ApplicationEventPublisher applicationEventPublisher)