Interface CustomModelValidator


  • public interface CustomModelValidator
    Custom model validator.
    Applications may enforce extra rules on the model. The validators must be annotated with the Service-annotation as follows:
        @Service(CustomModelValidator.class)
        public class MyModelValidator implements CustomModelValidator {
    
          @Override
          public void validate(Model model) throws ModelException {
            ...
          }
        }
     
    • Method Detail

      • loadValidators

        static java.util.Collection<CustomModelValidator> loadValidators()
        Gets all custom model validators.
        Returns:
        the validators, never null