DefaultMBeanServerInterceptor.java 文件源码

java
阅读 29 收藏 0 点赞 0 评论 0

项目:jdk8u-jdk 作者:
public void handleNotification(Notification notification,
                               Object handback) {
    if (notification != null) {
        if (notification.getSource() == mbean)
            notification.setSource(name);
    }

    /*
     * Listeners are not supposed to throw exceptions.  If
     * this one does, we could remove it from the MBean.  It
     * might indicate that a connector has stopped working,
     * for instance, and there is no point in sending future
     * notifications over that connection.  However, this
     * seems rather drastic, so instead we propagate the
     * exception and let the broadcaster handle it.
     */
    listener.handleNotification(notification, handback);
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号