接口 ApplicationEventPublisherAware

    • 方法详细资料

      • setApplicationEventPublisher

        void setApplicationEventPublisher​(ApplicationEventPublisher applicationEventPublisher)
        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