List of usage examples for org.springframework.integration.support.management IntegrationManagement registerMetricsCaptor
default void registerMetricsCaptor(MetricsCaptor captor)
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); } }