Class ConfigValidation
java.lang.Object
org.apache.pulsar.config.validation.ConfigValidation
The class that does the validation of all the members of a given object.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanhasConstructor(Class<?> clazz, Class<?> paramClass) static voidvalidateConfig(Object config) Validate the config object with default annotation class.static voidvalidateConfig(Object config, Class annotationClass) Validate the config object with annotations from annotationClass.
-
Constructor Details
-
ConfigValidation
public ConfigValidation()
-
-
Method Details
-
validateConfig
Validate the config object with annotations from annotationClass.- Parameters:
config- config objectannotationClass- class with annotations to use
-
validateConfig
Validate the config object with default annotation class.- Parameters:
config- config object
-
hasConstructor
-