Annotation Type JMXBeanKey


  • @Documented
    @Retention(RUNTIME)
    public @interface JMXBeanKey

    Annotation applied to a getter method inside an annotated JMXBean class. This annotated getter method should return a unique bean key as a String. The bean key pattern must conform to the name used in the constructor of ObjectName.

    Example:
     @JMXBean
     public class MyBean
     {
            private int level = 0;
     
            @JMXBeanKey
            public String getBeanKey()
            {
                    return "datasource.trading.tradechannel:name=TradeChannel,level=" + level;
            }
     }