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

LoggingMXBeanImpl.java 文件源码 项目:cn1 阅读 22 收藏 0 点赞 0 评论 0
/**
 * Constructor intentionally private to prevent instantiation by others.
 * Sets the metadata for this bean.
 */
private LoggingMXBeanImpl() {
    setMBeanInfo(ManagementUtils
            .getMBeanInfo(LoggingMXBean.class.getName()));
}
LoggingMXBeanImplTest.java 文件源码 项目:cn1 阅读 23 收藏 0 点赞 0 评论 0
public final void testIsSingleton() {
    // Verify we always get the same instance
    LoggingMXBean bean = ManagementUtils.getLoggingBean();
    assertSame(mb, bean);
}
LoggingMXBeanImpl.java 文件源码 项目:freeVM 阅读 26 收藏 0 点赞 0 评论 0
/**
 * Constructor intentionally private to prevent instantiation by others.
 * Sets the metadata for this bean.
 */
private LoggingMXBeanImpl() {
    setMBeanInfo(ManagementUtils
            .getMBeanInfo(LoggingMXBean.class.getName()));
}
LoggingMXBeanImplTest.java 文件源码 项目:freeVM 阅读 21 收藏 0 点赞 0 评论 0
public final void testIsSingleton() {
    // Verify we always get the same instance
    LoggingMXBean bean = ManagementUtils.getLoggingBean();
    assertSame(mb, bean);
}
LoggingMXBeanImpl.java 文件源码 项目:freeVM 阅读 26 收藏 0 点赞 0 评论 0
/**
 * Constructor intentionally private to prevent instantiation by others.
 * Sets the metadata for this bean.
 */
private LoggingMXBeanImpl() {
    setMBeanInfo(ManagementUtils
            .getMBeanInfo(LoggingMXBean.class.getName()));
}
LoggingMXBeanImplTest.java 文件源码 项目:freeVM 阅读 20 收藏 0 点赞 0 评论 0
public final void testIsSingleton() {
    // Verify we always get the same instance
    LoggingMXBean bean = ManagementUtils.getLoggingBean();
    assertSame(mb, bean);
}


问题


面经


文章

微信
公众号

扫码关注公众号