Class PersonValidator

java.lang.Object
balu.pizza.webapp.util.PersonValidator
All Implemented Interfaces:
org.springframework.validation.Validator

@Component public class PersonValidator extends Object implements org.springframework.validation.Validator
  • Constructor Details

    • PersonValidator

      @Autowired public PersonValidator(PersonService personService)
  • Method Details

    • supports

      public boolean supports(Class<?> clazz)
      Specified by:
      supports in interface org.springframework.validation.Validator
    • validate

      public void validate(Object target, org.springframework.validation.Errors errors)
      Specified by:
      validate in interface org.springframework.validation.Validator
    • validate

      public void validate(Object target, int personId, org.springframework.validation.Errors errors)
    • validate

      public void validate(Object target, String rePassword, org.springframework.validation.Errors errors)