Can we make Lucene IndexWriter serializable for ExecutionContext of Spring Batch?
问题 This question is related to my another SO question. To keep IndexWriter open for the duration of a partitioned step, I thought to add IndexWriter in ExecutionContext of partitioner and then close in a StepExecutionListenerSupport 's afterStep(StepExecution stepExecution) method. Challenge that I am facing in this approach is that ExecutionContext needs Objects to be serializable. In light of these two questions, Q1, Q2 -- it doesn't seem feasible because I can't add a no - arg constructor in