io.kroxylicious.proxy.config.MicrometerDefinitionBuilder Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of kroxylicious-integration-test-support Show documentation
Show all versions of kroxylicious-integration-test-support Show documentation
Support code to simplify writing integration tests for filters
The newest version!
/*
* Copyright Kroxylicious Authors.
*
* Licensed under the Apache Software License version 2.0, available at http://www.apache.org/licenses/LICENSE-2.0
*/
package io.kroxylicious.proxy.config;
import java.util.Map;
import io.kroxylicious.proxy.micrometer.MicrometerConfigurationHookContributor;
import io.kroxylicious.proxy.service.ContributionManager;
public class MicrometerDefinitionBuilder extends AbstractDefinitionBuilder {
public MicrometerDefinitionBuilder(String type) {
super(type);
}
@Override
protected MicrometerDefinition buildInternal(String type, Map config) {
Class> result = ContributionManager.INSTANCE.getDefinition(MicrometerConfigurationHookContributor.class, type).configurationType();
return new MicrometerDefinition(type, mapper.convertValue(config, result));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy