Stuart McCulloch | bb01437 | 2012-06-07 21:57:32 +0000 | [diff] [blame] | 1 | package aQute.bnd.service; |
| 2 | |
| 3 | import java.util.*; |
| 4 | |
Stuart McCulloch | 39cc9ac | 2012-07-16 13:43:38 +0000 | [diff] [blame] | 5 | import aQute.bnd.osgi.*; |
Stuart McCulloch | bb01437 | 2012-06-07 21:57:32 +0000 | [diff] [blame] | 6 | |
| 7 | public interface MakePlugin { |
| 8 | |
Stuart McCulloch | 2286f23 | 2012-06-15 13:27:53 +0000 | [diff] [blame] | 9 | /** |
| 10 | * This plugin is called when Include-Resource detects a reference to a |
| 11 | * resource that it can not find in the file system. |
| 12 | * |
| 13 | * @param builder |
| 14 | * The current builder |
| 15 | * @param source |
| 16 | * The source string (i.e. the place where bnd looked) |
| 17 | * @param arguments |
| 18 | * Any arguments on the clause in Include-Resource |
| 19 | * @return A resource or null if no resource could be made |
| 20 | * @throws Exception |
| 21 | */ |
| 22 | Resource make(Builder builder, String source, Map<String,String> arguments) throws Exception; |
Stuart McCulloch | bb01437 | 2012-06-07 21:57:32 +0000 | [diff] [blame] | 23 | |
| 24 | } |