OPEN - issue BATCH-320: Refactor ItemWriter as primary collaborator (with wrapper for processor)

http://jira.springframework.org/browse/BATCH-320

Replace DummyItemWriter to fix failed build
This commit is contained in:
dsyer
2008-01-29 09:22:42 +00:00
parent 63594415ca
commit b0c6a16879
4 changed files with 35 additions and 6 deletions

View File

@@ -0,0 +1,30 @@
/*
* Copyright 2006-2007 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.springframework.batch.sample.item.writer;
import org.springframework.batch.item.ItemWriter;
/**
* @author Dave Syer
*
*/
public class DummyItemWriter implements ItemWriter {
public void write(Object item) throws Exception {
// NO-OP
}
}

View File

@@ -67,8 +67,7 @@
class="org.springframework.batch.execution.tasklet.RestartableItemOrientedTasklet">
<property name="itemReader" ref="tradeSqlItemReader" />
<property name="itemWriter">
<bean
class="org.springframework.batch.execution.launch.EmptyItemWriter" />
<bean class="org.springframework.batch.sample.item.writer.DummyItemWriter" />
</property>
</bean>
</property>