1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20 package org.apache.geronimo.mavenplugins.geronimo.reporting;
21
22 /**
23 * Provides an asbtraction to allow pluggable report handling.
24 *
25 * @version $Rev: 450613 $ $Date: 2006-09-27 15:45:46 -0700 (Wed, 27 Sep 2006) $
26 */
27 public interface Reporter
28 {
29 /**
30 * Signals the start of a reporting run. This method should collect the required information.
31 *
32 * @param source The source of the report; must not be null.
33 */
34 void reportBegin(Reportable source);
35
36 /**
37 * Called when a failure has occured while executing a goal.
38 *
39 * @param cause The cause of the error; must not be null.
40 */
41 void reportError(Throwable cause);
42
43 /**
44 * Called after the goal has run (with or with-out errors).
45 */
46 void reportEnd();
47 }