BaseModelMBean.java 文件源码

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

项目:apache-tomcat-7.0.73-with-comment 作者:
/**
 * Remove an attribute change notification event listener from
 * this MBean.
 *
 * @param listener The listener to be removed
 * @param name The attribute name for which no more events are required
 *
 *
 * @exception ListenerNotFoundException if this listener is not
 *  registered in the MBean
 */
@Override
public void removeAttributeChangeNotificationListener
    (NotificationListener listener, String name)
    throws ListenerNotFoundException {

    if (listener == null)
        throw new IllegalArgumentException("Listener is null");

    // FIXME - currently this removes *all* notifications for this listener
    if (attributeBroadcaster != null) {
        attributeBroadcaster.removeNotificationListener(listener);
    }

}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号