Various tidying up to remove tasklet from simple steps and fix samples config.

This commit is contained in:
dsyer
2008-02-10 11:45:58 +00:00
parent 0bc8aa4493
commit 7775b270d5
10 changed files with 95 additions and 82 deletions

View File

@@ -21,11 +21,10 @@
<bean id="infiniteLoopJob" parent="simpleJob">
<property name="steps">
<bean id="step1" parent="simpleStep">
<bean id="step1" parent="taskletStep">
<property name="tasklet">
<bean id="module" class="org.springframework.batch.sample.tasklet.InfiniteLoopTasklet"/>
</property>
<property name="commitInterval" value="2" />
</bean>
</property>
</bean>

View File

@@ -83,15 +83,20 @@
<property name="restartable" value="true" />
</bean>
<bean id="abstractStep" abstract="true">
<bean id="taskletStep"
class="org.springframework.batch.execution.step.tasklet.TaskletStep"
abstract="true">
<property name="jobRepository" ref="jobRepository" />
<property name="transactionManager" ref="transactionManager" />
<property name="allowStartIfComplete" value="true" />
<property name="saveExecutionAttributes" value="true" />
</bean>
<bean id="abstractStep" class="org.springframework.batch.execution.step.simple.SimpleStep"
abstract="true" parent="taskletStep">
<property name="transactionManager" ref="transactionManager" />
</bean>
<bean id="simpleStep" parent="abstractStep"
class="org.springframework.batch.execution.step.simple.SimpleStep"
abstract="true">
<property name="exceptionHandler">
<bean

View File

@@ -4,9 +4,7 @@ import java.util.ArrayList;
import junit.framework.TestCase;
import org.easymock.MockControl;
import org.springframework.batch.io.exception.BatchCriticalException;
import org.springframework.batch.item.ItemWriter;
import org.springframework.batch.item.reader.ListItemReader;
import org.springframework.batch.repeat.context.RepeatContextSupport;
import org.springframework.batch.repeat.synch.RepeatSynchronizationManager;