package org.axonframework.metrics;

import org.axonframework.config.Configurer;
import org.axonframework.config.ModuleConfigurer;

/**
 * Implementation of the {@link org.axonframework.config.ModuleConfigurer} which uses the
 * {@link org.axonframework.metrics.GlobalMetricRegistry} to register several Metrics Modules to the given
 * {@link org.axonframework.config.Configurer}.
 *
 * @author Steven van Beelen
 * @since 3.2
 */
public class MetricsModuleConfigurer implements ModuleConfigurer {

    private final GlobalMetricRegistry globalMetricRegistry;

    public MetricsModuleConfigurer(GlobalMetricRegistry globalMetricRegistry) {
        this.globalMetricRegistry = globalMetricRegistry;
    }

    @Override
    public void configureModule(Configurer configurer) {
        globalMetricRegistry.registerWithConfigurer(configurer);
    }
}

Create ModuleConfiguration implementation for Metrics
Create ModuleConfiguration implementation for Metrics

Create ModuleConfiguration implementation for Metrics

#236
