Mandy Chung wrote:

:

This LoggingMXBean is needed to create a compliant MXBean; otherwise, if PlatformLoggingImpl implements PlatformLoggingMXBean and j.u.logging.LoggingMXBean directly, MBeanServer will throw a NonCompliantMBeanException. As specified in the MXBean, http://download.oracle.com/javase/6/docs/api/javax/management/MXBean.html#mxbean-def

If an object implements two MXBean interfaces, it is a non-compliant MXBean or it extends StandardMBean.

I added the comment to explain this.
Thanks, this wasn't obvious so the comment helps. Minor typo is that it reads "it is a non-complaint MXBean MBeanServer will throw NotCompliantMBeanException".

Otherwise thumbs up from me.

-Alan.

Reply via email to