Example usage for org.springframework.integration.support.management IntegrationManagement registerMetricsCaptor

List of usage examples for org.springframework.integration.support.management IntegrationManagement registerMetricsCaptor

Introduction

In this page you can find the example usage for org.springframework.integration.support.management IntegrationManagement registerMetricsCaptor.

Prototype

default void registerMetricsCaptor(MetricsCaptor captor) 

Source Link

Document

Inject a MetricsCaptor

Usage

From source file:org.springframework.integration.config.IntegrationManagementConfigurer.java

private void injectCaptor() {
    Map<String, IntegrationManagement> managed = this.applicationContext
            .getBeansOfType(IntegrationManagement.class);
    for (Entry<String, IntegrationManagement> entry : managed.entrySet()) {
        IntegrationManagement bean = entry.getValue();
        if (!bean.getOverrides().loggingConfigured) {
            bean.setLoggingEnabled(this.defaultLoggingEnabled);
        }/*from w  ww.j a va 2s.  c  om*/
        bean.registerMetricsCaptor(this.metricsCaptor);
    }
}