Back to Summer Batch home page

Process Adapters

ProcessAdapters are classes that enable to call a reader or a writer inside a processor class. They are useful, for example, to be able to read several files at once: the first file will be read through the reader as usual while the second file will be read during the processing. There are two such classes. The ProcessReaderAdapter will supply the ReadInProcess method, while the ProcessWriterAdapter will supply the WriteInProcess method. Both classes have an Adaptee property that references the actual reader or writer, and that will be wired through Unity setup, and also need the StepContextManager.

Example 7.22. Example ProcessAdapter Wiring


Back to Summer Batch home page