Class ConfigValidationAnnotations


  • public class ConfigValidationAnnotations
    extends Object
    Note: every annotation interface must have method `validatorClass()` For every annotation there must validator class to do the validation To add another annotation for config validation, add another annotation @interface class. Implement the corresponding validator logic in a class in ConfigValidation. Make sure validateField method in ConfigValidation knows how to use the validator and which method definition/parameters to pass in based on what fields are in the annotation. By default, params of annotations will be passed into a constructor that takes a Map as a parameter.
    • Constructor Detail

      • ConfigValidationAnnotations

        public ConfigValidationAnnotations()