Module io.helidon.builder.config
Package io.helidon.builder.config.spi
Class ConfigBeanBuilderValidatorHolder
java.lang.Object
io.helidon.builder.config.spi.ConfigBeanBuilderValidatorHolder
Provides access to the
ConfigBeanBuilderValidator.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic <CBB> Optional<ConfigBeanBuilderValidator<CBB>>configBeanValidatorFor(Class<CBB> configBeanBuilderType) Provides the global service-loader instance ofConfigBeanBuilderValidator.
-
Method Details
-
configBeanValidatorFor
public static <CBB> Optional<ConfigBeanBuilderValidator<CBB>> configBeanValidatorFor(Class<CBB> configBeanBuilderType) Provides the global service-loader instance ofConfigBeanBuilderValidator.Note that the current expectation here is that the global instance is capable for validating any
ConfigBean-annotated type. The parameter used for the configBeanBuilderType serves to both type case the validator, and also reserves the possibility that the returned instance may be nuanced per builder type at some point in the future.- Type Parameters:
CBB- the config bean builder type- Parameters:
configBeanBuilderType- the config bean builder type to validate- Returns:
- the config bean builder validator
-