Class BackInStockValidator

  • All Implemented Interfaces:
    org.springframework.validation.Validator

    public class BackInStockValidator
    extends java.lang.Object
    implements org.springframework.validation.Validator
    Validate the product's stock level when the notification type is back in stock.
    • Constructor Detail

      • BackInStockValidator

        public BackInStockValidator​(ProductFacade productFacade)
    • Method Detail

      • supports

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

        public void validate​(java.lang.Object object,
                             org.springframework.validation.Errors errors)
        Specified by:
        validate in interface org.springframework.validation.Validator
      • setProductFacade

        public void setProductFacade​(ProductFacade productFacade)