RMINotifTest.java 文件源码

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

项目:openjdk-jdk10 作者:
/**
 * Returns a NotificationInfo object containing the name of the Java class of the notification
 * and the notification types sent by this notification broadcaster.
 */
public MBeanNotificationInfo[] getNotificationInfo() {

    MBeanNotificationInfo[] ntfInfoArray  = new MBeanNotificationInfo[1];

    String[] ntfTypes = new String[1];
    ntfTypes[0] = myType;

    ntfInfoArray[0] = new MBeanNotificationInfo(ntfTypes,
                                                "javax.management.Notification",
                                                "Notifications sent by the NotificationEmitter");
    return ntfInfoArray;
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号