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 | /** |
Stuart McCulloch | 2286f23 | 2012-06-15 13:27:53 +0000 | [diff] [blame] | 6 | * A plugin that makes it possible to |
| 7 | * |
Stuart McCulloch | bb01437 | 2012-06-07 21:57:32 +0000 | [diff] [blame] | 8 | * @author aqute |
Stuart McCulloch | bb01437 | 2012-06-07 21:57:32 +0000 | [diff] [blame] | 9 | */ |
| 10 | public interface CommandPlugin { |
Stuart McCulloch | 2286f23 | 2012-06-15 13:27:53 +0000 | [diff] [blame] | 11 | /** |
| 12 | * Is run before a command is executed. These plugins are called in the |
| 13 | * order of declaration. |
| 14 | * |
| 15 | * @param project |
| 16 | * The project for which the command runs |
| 17 | * @param command |
| 18 | * the command name |
| 19 | */ |
| 20 | void before(Project project, String command); |
| 21 | |
| 22 | /** |
| 23 | * Is run after a command is executed. These plugins are called in the |
| 24 | * reverse order of declaration. |
| 25 | * |
| 26 | * @param project |
| 27 | * The project for which the command runs |
| 28 | * @param command |
| 29 | * the command name |
| 30 | */ |
| 31 | void after(Project project, String command, Throwable outcome); |
Stuart McCulloch | bb01437 | 2012-06-07 21:57:32 +0000 | [diff] [blame] | 32 | } |