get MBean Notification Info - Java javax.management

Java examples for javax.management:MBean

Description

get MBean Notification Info

Demo Code


//package com.java2s;
import javax.management.AttributeChangeNotification;

import javax.management.MBeanNotificationInfo;

public class Main {
    public static void main(String[] argv) throws Exception {
        System.out//from   w w  w .j  av a  2s  . co  m
                .println(java.util.Arrays.toString(getNotificationInfo()));
    }

    public static MBeanNotificationInfo[] getNotificationInfo() {
        return new MBeanNotificationInfo[] { new MBeanNotificationInfo(
                new String[] { AttributeChangeNotification.ATTRIBUTE_CHANGE },
                "javax.management.AttributeChangeNotification",
                "Attribute change notification") };
    }
}

Related Tutorials