接口 ApplicationEventPublisherAware
- 所有超级接口:
Aware
- 所有已知实现类:
EventPublicationInterceptor
Interface to be implemented by any object that wishes to be notified
of the ApplicationEventPublisher (typically the ApplicationContext)
that it runs in.
- 从以下版本开始:
- 4.0
- 作者:
- Juergen Hoeller, Chris Beams, TODAY 2021/10/7 17:03
- 另请参阅:
-
方法概要
修饰符和类型方法说明voidsetApplicationEventPublisher(ApplicationEventPublisher applicationEventPublisher) Set the ApplicationEventPublisher that this object runs in.
-
方法详细资料
-
setApplicationEventPublisher
Set the ApplicationEventPublisher that this object runs in.Invoked after population of normal bean properties but before an init callback like InitializingBean's afterPropertiesSet or a custom init-method. Invoked before ApplicationContextAware's setApplicationContext.
- 参数:
applicationEventPublisher- event publisher to be used by this object
-