blob: 34c72c2b406b183cf455cb513b8148eb77e3d1b6 [file] [log] [blame]
Stuart McCulloch26e7a5a2011-10-17 10:31:43 +00001package aQute.bnd.service;
2
3import aQute.bnd.build.*;
4
5/**
6 * A plugin that makes it possible to
7 * @author aqute
8 *
9 */
10public interface CommandPlugin {
11 /**
12 * Is run before a command is executed. These plugins are called
13 * in the order of declaration.
14 *
15 * @param project The project for which the command runs
16 *
17 * @param command the command name
18 */
19 void before(Project project, String command);
20
21 /**
22 * Is run after a command is executed. These plugins are
23 * called in the reverse order of declaration.
24 *
25 * @param project The project for which the command runs
26 *
27 * @param command the command name
28 */
29 void after(Project project, String command, Throwable outcome);
30}