View Javadoc
1   package org.nuiton.validator.bean;
2   /*
3    * #%L
4    * Nuiton Validator
5    * %%
6    * Copyright (C) 2013 - 2014 Code Lutin, Tony Chemit
7    * %%
8    * This program is free software: you can redistribute it and/or modify
9    * it under the terms of the GNU Lesser General Public License as 
10   * published by the Free Software Foundation, either version 3 of the 
11   * License, or (at your option) any later version.
12   * 
13   * This program is distributed in the hope that it will be useful,
14   * but WITHOUT ANY WARRANTY; without even the implied warranty of
15   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16   * GNU General Lesser Public License for more details.
17   * 
18   * You should have received a copy of the GNU General Lesser Public 
19   * License along with this program.  If not, see
20   * <http://www.gnu.org/licenses/lgpl-3.0.html>.
21   * #L%
22   */
23  
24  import org.nuiton.validator.bean.list.BeanListValidator;
25  import org.nuiton.validator.bean.list.BeanListValidatorEvent;
26  
27  import java.util.EventListener;
28  
29  /**
30   * The definition of an event on {@link BeanListValidatorEvent}
31   * to be fired by a {@link BeanListValidator}.
32   *
33   * @author Tony Chemit - chemit@codelutin.com
34   * @since 2.5.2
35   */
36  public interface ValidatorListener<E extends AbstractValidatorEvent<?>> extends EventListener {
37  
38      /**
39       * Invoked when the {@link E} detects some changes for a
40       * given bean / field / scope.
41       *
42       * @param event the event
43       */
44      void onFieldChanged(E event);
45  }