Interface ResourceProcessor
- All Known Implementing Classes:
AnnotationAcceptingListener
public interface ResourceProcessor
Processes resources found by
ResourceFinder.- Author:
- Pavel Bucek
-
Method Summary
Modifier and TypeMethodDescriptionbooleanAccept a scanned resource.voidprocess(String name, InputStream in) Process a scanned resource.
-
Method Details
-
accept
Accept a scanned resource.- Parameters:
name- the resource name.- Returns:
- true if the resource is accepted for processing, otherwise false.
-
process
Process a scanned resource.This method will be invoked after the listener has accepted the resource.
- Parameters:
name- the resource name.in- the input stream of the resource- Throws:
IOException- if an error occurs when processing the resource.
-