Stuart McCulloch | 26e7a5a | 2011-10-17 10:31:43 +0000 | [diff] [blame^] | 1 | package aQute.lib.deployer.obr; |
| 2 | |
| 3 | public interface IResourceListener { |
| 4 | /** |
| 5 | * Process an OBR resource descriptor from the index document, and possibly |
| 6 | * request early termination of the parser. |
| 7 | * |
| 8 | * @param resource |
| 9 | * The resource descriptor to be processed. |
| 10 | * @return Whether to continue parsing the document; returning {@code false} |
| 11 | * will result in the parser being stopped with a |
| 12 | * {@link StopParseException}. |
| 13 | */ |
| 14 | boolean processResource(Resource resource); |
| 15 | } |