MX4JModelMBean.java 文件源码

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

项目:monarch 作者:
public void sendAttributeChangeNotification(AttributeChangeNotification notification)
    throws MBeanException, RuntimeOperationsException {
  if (notification == null)
    throw new RuntimeOperationsException(new IllegalArgumentException(
        LocalizedStrings.MX4JModelMBean_NOTIFICATION_CANNOT_BE_NULL.toLocalizedString()));

  getAttributeChangeBroadcaster().sendNotification(notification);

  Logger modelMBeanLogger = getModelMBeanLogger(notification.getType());
  if (modelMBeanLogger != null)
    if (modelMBeanLogger.isEnabledFor(Logger.DEBUG))
      modelMBeanLogger.debug("ModelMBean log: " + new Date() + " - " + notification);

  Logger logger = getLogger();
  if (logger.isEnabledFor(Logger.DEBUG))
    logger.debug("Attribute change notification " + notification + " sent");
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号