Interface to be implemented by OSGI services meant for processing watch-folder inputs.
An implementation should register itself with the OSGI container as a provider of the
ContentProcessor interface, using custom properties which can be used in a filter for
uniquely identifying it among other registered ContentProcessor implementations.
Implementations of this method should read the watch-folder input from the supplied
context, process the input as per their own internal logic and write the outputs back
to the context. Outputs written back to the context will ultimately be written out as
physical files in the results sub-folder of the watch-folder.
If an exception is thrown during input processing, it will be written out as a log file
in the failures sub-folder of the watch-folder along with the original input.
context - The context which supplies the watch-folder inputs and configuration parameters, and
acts as a placeholder for the results to be written out.
Exception - If an error occurs during input processing.