Class ConfigBeanBuilderValidatorHolder

java.lang.Object
io.helidon.builder.config.spi.ConfigBeanBuilderValidatorHolder

public class ConfigBeanBuilderValidatorHolder extends Object
Provides access to the ConfigBeanBuilderValidator.
See Also:
  • Method Details

    • configBeanValidatorFor

      public static <CBB> Optional<ConfigBeanBuilderValidator<CBB>> configBeanValidatorFor(Class<CBB> configBeanBuilderType)
      Provides the global service-loader instance of ConfigBeanBuilderValidator.

      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