public class MeterRegistryConfigValidator
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static <M extends MeterRegistryConfig,T> |
check(java.lang.String property,
java.util.function.Function<M,T> getter)
Specifies how to retrieve a property on a configuration object, which in turn may use
PropertyValidator to validate the format of the
source of the property's value based on the configuration's MeterRegistryConfig.get(String) implementation. |
static <M extends MeterRegistryConfig> |
checkAll(M config,
java.util.function.Function<M,? extends Validated<?>>... validation) |
static <M extends MeterRegistryConfig,T> |
checkRequired(java.lang.String property,
java.util.function.Function<M,T> getter) |
@SafeVarargs public static <M extends MeterRegistryConfig> Validated<?> checkAll(M config, java.util.function.Function<M,? extends Validated<?>>... validation)
public static <M extends MeterRegistryConfig,T> java.util.function.Function<M,Validated<T>> check(java.lang.String property, java.util.function.Function<M,T> getter)
PropertyValidator
to validate the format of the
source of the property's value based on the configuration's MeterRegistryConfig.get(String)
implementation.
Alternatively the getter method used to fetch the property may be overridden directly by a programmer as they instantiate
the configuration interface.M
- The type of the configuration interface.T
- The type of the property.property
- The named property to retrieve.getter
- The method on the configuration interface which corresponds to this property.public static <M extends MeterRegistryConfig,T> java.util.function.Function<M,Validated<T>> checkRequired(java.lang.String property, java.util.function.Function<M,T> getter)