@InterfaceAudience.Private public final class MetricRegistriesLoader extends Object
Modifier and Type | Field and Description |
---|---|
private static String |
defaultClass |
private static org.slf4j.Logger |
LOG |
Modifier | Constructor and Description |
---|---|
private |
MetricRegistriesLoader() |
Modifier and Type | Method and Description |
---|---|
private static List<MetricRegistries> |
getDefinedImplemantations() |
static MetricRegistries |
load()
Creates a
MetricRegistries instance using the corresponding MetricRegistries
available to ServiceLoader on the classpath. |
(package private) static MetricRegistries |
load(List<MetricRegistries> availableImplementations)
Creates a
MetricRegistries instance using the corresponding MetricRegistries
available to ServiceLoader on the classpath. |
private static final org.slf4j.Logger LOG
private static final String defaultClass
private MetricRegistriesLoader()
public static MetricRegistries load()
MetricRegistries
instance using the corresponding MetricRegistries
available to ServiceLoader
on the classpath. If no instance is found, then default
implementation will be loaded.MetricRegistries
implementation.static MetricRegistries load(List<MetricRegistries> availableImplementations)
MetricRegistries
instance using the corresponding MetricRegistries
available to ServiceLoader
on the classpath. If no instance is found, then default
implementation will be loaded.MetricRegistries
implementation.private static List<MetricRegistries> getDefinedImplemantations()
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.