Class ConfigValidation
- java.lang.Object
-
- org.apache.pulsar.config.validation.ConfigValidation
-
public class ConfigValidation extends java.lang.ObjectThe class that does the validation of all the members of a given object.
-
-
Constructor Summary
Constructors Constructor Description ConfigValidation()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleanhasConstructor(java.lang.Class<?> clazz, java.lang.Class<?> paramClass)static voidvalidateConfig(java.lang.Object config)Validate the config object with default annotation class.static voidvalidateConfig(java.lang.Object config, java.lang.Class annotationClass)Validate the config object with annotations from annotationClass.
-
-
-
Method Detail
-
validateConfig
public static void validateConfig(java.lang.Object config, java.lang.Class annotationClass)Validate the config object with annotations from annotationClass.- Parameters:
config- config objectannotationClass- class with annotations to use
-
validateConfig
public static void validateConfig(java.lang.Object config)
Validate the config object with default annotation class.- Parameters:
config- config object
-
hasConstructor
public static boolean hasConstructor(java.lang.Class<?> clazz, java.lang.Class<?> paramClass)
-
-