Java 类org.springframework.boot.admin.SpringApplicationAdminMXBeanRegistrar 实例源码

项目:https-github.com-g0t4-jenkins2-course-spring-boot    文件:SpringApplicationAdminJmxAutoConfiguration.java   
@Bean
@ConditionalOnMissingBean
public SpringApplicationAdminMXBeanRegistrar springApplicationAdminRegistrar()
        throws MalformedObjectNameException {
    String jmxName = this.environment.getProperty(JMX_NAME_PROPERTY,
            DEFAULT_JMX_NAME);
    if (this.mbeanExporter != null) { // Make sure to not register that MBean twice
        this.mbeanExporter.addExcludedBean(jmxName);
    }
    return new SpringApplicationAdminMXBeanRegistrar(jmxName);
}
项目:spring-boot-concourse    文件:SpringApplicationAdminJmxAutoConfiguration.java   
@Bean
public SpringApplicationAdminMXBeanRegistrar springApplicationAdminRegistrar()
        throws MalformedObjectNameException {
    String jmxName = this.environment.getProperty(JMX_NAME_PROPERTY,
            DEFAULT_JMX_NAME);
    if (this.mbeanExporter != null) { // Make sure to not register that MBean twice
        this.mbeanExporter.addExcludedBean(jmxName);
    }
    return new SpringApplicationAdminMXBeanRegistrar(jmxName);
}
项目:contestparser    文件:SpringApplicationAdminJmxAutoConfiguration.java   
@Bean
public SpringApplicationAdminMXBeanRegistrar springApplicationAdminRegistrar()
        throws MalformedObjectNameException {
    String jmxName = this.environment.getProperty(JMX_NAME_PROPERTY,
            DEFAULT_JMX_NAME);
    if (this.mbeanExporter != null) { // Make sure to not register that MBean twice
        this.mbeanExporter.addExcludedBean(jmxName);
    }
    return new SpringApplicationAdminMXBeanRegistrar(jmxName);
}