Stuart McCulloch | bb01437 | 2012-06-07 21:57:32 +0000 | [diff] [blame] | 1 | package aQute.bnd.service; |
| 2 | |
| 3 | import aQute.bnd.build.*; |
| 4 | |
| 5 | /** |
| 6 | * A plugin that makes it possible to |
| 7 | * @author aqute |
| 8 | * |
| 9 | */ |
| 10 | public 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 | } |