Class IngredientValidator

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

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

    • IngredientValidator

      public IngredientValidator(IngredientService ingredientService)
  • 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 ingrId, org.springframework.validation.Errors errors)