Java 类java.util.logging.LoggingMXBean 实例源码

项目:cn1    文件:LoggingMXBeanImpl.java   
/**
 * Constructor intentionally private to prevent instantiation by others.
 * Sets the metadata for this bean.
 */
private LoggingMXBeanImpl() {
    setMBeanInfo(ManagementUtils
            .getMBeanInfo(LoggingMXBean.class.getName()));
}
项目:cn1    文件:LoggingMXBeanImplTest.java   
public final void testIsSingleton() {
    // Verify we always get the same instance
    LoggingMXBean bean = ManagementUtils.getLoggingBean();
    assertSame(mb, bean);
}
项目:freeVM    文件:LoggingMXBeanImpl.java   
/**
 * Constructor intentionally private to prevent instantiation by others.
 * Sets the metadata for this bean.
 */
private LoggingMXBeanImpl() {
    setMBeanInfo(ManagementUtils
            .getMBeanInfo(LoggingMXBean.class.getName()));
}
项目:freeVM    文件:LoggingMXBeanImplTest.java   
public final void testIsSingleton() {
    // Verify we always get the same instance
    LoggingMXBean bean = ManagementUtils.getLoggingBean();
    assertSame(mb, bean);
}
项目:freeVM    文件:LoggingMXBeanImpl.java   
/**
 * Constructor intentionally private to prevent instantiation by others.
 * Sets the metadata for this bean.
 */
private LoggingMXBeanImpl() {
    setMBeanInfo(ManagementUtils
            .getMBeanInfo(LoggingMXBean.class.getName()));
}
项目:freeVM    文件:LoggingMXBeanImplTest.java   
public final void testIsSingleton() {
    // Verify we always get the same instance
    LoggingMXBean bean = ManagementUtils.getLoggingBean();
    assertSame(mb, bean);
}