您的位置:首页 > 移动开发

每日一则JavaWeb---Spring的ApplicationEventPublisher的作用

2017-08-30 19:10 387 查看
public interface ApplicationEventPublisher {

/**
* Notify all listeners registered with this application of an application
* event. Events may be framework events (such as RequestHandledEvent)
* or application-specific events.
* @param event the event to publish
* @see org.springframework.web.context.support.RequestHandledEvent
*/
void publishEvent(ApplicationEvent event);

}
去就是给ApplicationContext包裹一层来进行发布事件的
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐