Class Validator


  • public class Validator
    extends Object
    • Constructor Detail

      • Validator

        public Validator()
    • Method Detail

      • verifyMethod

        public <T> void verifyMethod​(T proxy,
                                     Method method,
                                     Object[] args)
        Validate the method parameters based on javax.validation: Hibernate Validator.
        Type Parameters:
        T - The target object type: Generic types.
        Parameters:
        proxy - The checked target object.
        method - The checked target method.
        args - The checked target method's parameters.
      • buildRulers

        public Map<String,​List<Rule>> buildRulers​(Depot depot)
        Advanced ruler building for Body content validation based on yml configuration.
        Parameters:
        depot - The container to contains event, configuration, ruler.
        Returns:
        The configured rulers.