Package org.apache.storm.validation
Interface ConfigValidationUtils.FieldValidator
- All Known Implementing Classes:
ConfigValidationUtils.NestableFieldValidator
- Enclosing class:
- ConfigValidationUtils
public static interface ConfigValidationUtils.FieldValidator
Declares methods for validating configuration values.
-
Method Summary
Modifier and TypeMethodDescriptionvoidvalidateField(String name, Object field) Validates the given field.
-
Method Details
-
validateField
Validates the given field.- Parameters:
name- the name of the field.field- The field to be validated.- Throws:
IllegalArgumentException- if the field fails validation.
-