Class ConfigValidation


  • public class ConfigValidation
    extends java.lang.Object
    The class that does the validation of all the members of a given object.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static boolean hasConstructor​(java.lang.Class<?> clazz, java.lang.Class<?> paramClass)  
      static void validateConfig​(java.lang.Object config)
      Validate the config object with default annotation class.
      static void validateConfig​(java.lang.Object config, java.lang.Class annotationClass)
      Validate the config object with annotations from annotationClass.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ConfigValidation

        public ConfigValidation()
    • 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 object
        annotationClass - 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)