类 ConfigValidation
java.lang.Object
org.apache.pulsar.config.validation.ConfigValidation
The class that does the validation of all the members of a given object.
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static 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.
-
构造器详细资料
-
ConfigValidation
public ConfigValidation()
-
-
方法详细资料
-
validateConfig
Validate the config object with annotations from annotationClass.- 参数:
config- config objectannotationClass- class with annotations to use
-
validateConfig
Validate the config object with default annotation class.- 参数:
config- config object
-
hasConstructor
-