public interface IDocumentSource extends IProcessingComponent
IDocumentSources is the following following:
IDocumentSourceand annotate it with
Bindable. You may want to extend
ProcessingComponentBaseto get empty implementations of the
IProcessingComponentlife cycle methods.
Input. Also, add either
Processingannotation depending on the intended scope of the parameter. See
IProcessingComponentfor information when these fields will be populated with values passed by the caller.
Processingannotations. For the
Documents fetched by your source declare a
Document> field whose
IProcessingComponent.process()method to fetch the documents (based on the values read from fields annotated with
Inputwhich will have already been populated with values passed by the caller) and assign the results to the fields annotated with
Output(which Carrot2 core will collect and pass for further processing).