|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.springframework.context.event.EventPublicationInterceptor
Interceptor that knows how to publish ApplicationEvents to all ApplicationListeners registered with an ApplicationContext.
ApplicationEvent
,
ApplicationListener
Constructor Summary | |
EventPublicationInterceptor()
|
Method Summary | |
java.lang.Object |
invoke(org.aopalliance.intercept.MethodInvocation invocation)
|
void |
setApplicationContext(ApplicationContext applicationContext)
Set the ApplicationContext that this object runs in. |
void |
setApplicationEventClass(java.lang.Class applicationEventClass)
Set the application event class to publish. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public EventPublicationInterceptor()
Method Detail |
public void setApplicationContext(ApplicationContext applicationContext)
ApplicationContextAware
Invoked after population of normal bean properties but before an init callback like InitializingBean's afterPropertiesSet or a custom init-method. Invoked after ResourceLoaderAware's setResourceLoader.
setApplicationContext
in interface ApplicationContextAware
applicationContext
- ApplicationContext object to be used by this objectBeanInitializationException
public void setApplicationEventClass(java.lang.Class applicationEventClass)
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 java.lang.Object invoke(org.aopalliance.intercept.MethodInvocation invocation) throws java.lang.Throwable
invoke
in interface org.aopalliance.intercept.MethodInterceptor
java.lang.Throwable
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |