Java 类org.apache.catalina.mbeans.MBeanFactory 实例源码

项目:WBSAirback    文件:StandardServer.java   
/**
 * Invoke a pre-startup initialization. This is used to allow connectors
 * to bind to restricted ports under Unix operating environments.
 */
@Override
protected void initInternal() throws LifecycleException {

    super.initInternal();

    // Register global String cache
    // Note although the cache is global, if there are multiple Servers
    // present in the JVM (may happen when embedding) then the same cache
    // will be registered under multiple names
    onameStringCache = register(new StringCache(), "type=StringCache");

    // Register the MBeanFactory
    MBeanFactory factory = new MBeanFactory();
    factory.setContainer(this);
    onameMBeanFactory = register(factory, "type=MBeanFactory");

    // Register the naming resources
    globalNamingResources.init();

    // Initialize our defined Services
    for (int i = 0; i < services.length; i++) {
        services[i].init();
    }
}
项目:https-github.com-g0t4-jenkins2-course-spring-boot    文件:BackgroundPreinitializer.java   
@Override
public void run() {
    new MBeanFactory();
}
项目:spring-boot-concourse    文件:BackgroundPreinitializer.java   
@Override
public void run() {
    new MBeanFactory();
}