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 to read several files at once: first file will be read through the reader as usual while the second file will be read during the processing. Two such classes are: ProcessReaderAdapter that will supply ReadInProcess method, while ProcessWriterAdapter will supply WriteInProcess method. Both classes have an Adaptee property that references the actual reader or writer, and that will be wired through Unity setup will need the StepContextManager.

Example 7.22. Example ProcessAdapter Wiring


Back to Summer Batch home page