Java 类org.springframework.boot.actuate.autoconfigure.MetricsDropwizardAutoConfiguration 实例源码

项目:graphite-spring-boot-starter    文件:GraphiteAutoConfigureTest.java   
private void initContextWith(boolean enabled, int intervalInSeconds, String prefix) {
    addEnvironment(this.context, "graphite.enabled:" + enabled,
            "graphite.host:localhost",
            "graphite.port:" + serverStub.getPort(),
            "graphite.report-interval:" + intervalInSeconds,
            "graphite.prefix:" + prefix);
    context.register(MetricsDropwizardAutoConfiguration.class,GraphiteAutoConfigure.class);
    context.refresh();
}