View Javadoc

1   /* $Id: Listener.java,v 1.1 2004/03/17 21:17:13 johndavidtaylor Exp $
2   * Created on Feb 19, 2004 by John Taylor jdt@roe.ac.uk .
3   */
4   
5   package org.abraracourcix.alipes.listeners;
6   
7   import org.abraracourcix.alipes.common.Event;
8   
9   /***
10   * Anything that listens for an event implements this
11   * @author jdt
12   */
13  public interface Listener {
14      /***
15       * Signals that something interesting has happened
16       * @param event what has happened
17       * @param resource to what
18       * @throws ListenerException a listener may throw a subclass of ListenerException
19       * if something goes wrong when it tries to log the exception.
20       */
21      void eventOccurred(Event event, Object resource) throws ListenerException;
22  }
23  
24  
25  /*
26  *$Log: Listener.java,v $
27  *Revision 1.1  2004/03/17 21:17:13  johndavidtaylor
28  *Copied across from incubation in beanpeeler
29  *
30  *Revision 1.4  2004/03/14 00:44:22  johndavidtaylor
31  *Added ListenerException
32  *
33  *Revision 1.3  2004/03/11 15:46:35  johndavidtaylor
34  *Applied coding standards
35  *
36  *Revision 1.2  2004/03/08 20:16:45  johndavidtaylor
37  *refactored to new package name
38  *
39  *Revision 1.1  2004/03/08 19:58:25  johndavidtaylor
40  *Initial commit -transfer  from previous repository
41  *
42  *Revision 1.1  2004/03/02 23:04:37  jdt
43  *new
44  *
45  */