BATCH-679: move flow abstraction to core

This commit is contained in:
dsyer
2008-10-30 07:45:26 +00:00
parent 185cc05ed4
commit 3590375d46
34 changed files with 49 additions and 57 deletions

View File

@@ -77,3 +77,8 @@ autowiring
strategizing
initialized
locale
savepoint
middleware
fallback
idempotent
reconstitute

View File

@@ -19,7 +19,7 @@ import java.util.Collection;
import org.springframework.batch.core.job.flow.DecisionState;
import org.springframework.batch.core.job.flow.JobExecutionDecider;
import org.springframework.batch.flow.StateTransition;
import org.springframework.batch.core.job.flow.StateTransition;
import org.springframework.beans.factory.config.RuntimeBeanReference;
import org.springframework.beans.factory.support.BeanDefinitionBuilder;
import org.springframework.beans.factory.xml.ParserContext;

View File

@@ -18,8 +18,8 @@ package org.springframework.batch.core.configuration.xml;
import java.util.ArrayList;
import java.util.List;
import org.springframework.batch.flow.Flow;
import org.springframework.batch.flow.SimpleFlow;
import org.springframework.batch.core.job.flow.Flow;
import org.springframework.batch.core.job.flow.SimpleFlow;
import org.springframework.beans.factory.config.RuntimeBeanReference;
import org.springframework.beans.factory.support.AbstractBeanDefinition;
import org.springframework.beans.factory.support.BeanDefinitionBuilder;

View File

@@ -20,8 +20,8 @@ import java.util.Collection;
import java.util.List;
import org.springframework.batch.core.job.flow.JobExecutionDecider;
import org.springframework.batch.flow.SplitState;
import org.springframework.batch.flow.StateTransition;
import org.springframework.batch.core.job.flow.SplitState;
import org.springframework.batch.core.job.flow.StateTransition;
import org.springframework.beans.factory.config.BeanDefinition;
import org.springframework.beans.factory.config.RuntimeBeanReference;
import org.springframework.beans.factory.support.BeanDefinitionBuilder;

View File

@@ -22,8 +22,8 @@ import java.util.List;
import org.springframework.batch.core.BatchStatus;
import org.springframework.batch.core.Step;
import org.springframework.batch.core.job.flow.EndState;
import org.springframework.batch.core.job.flow.StateTransition;
import org.springframework.batch.core.job.flow.StepState;
import org.springframework.batch.flow.StateTransition;
import org.springframework.beans.factory.BeanCreationException;
import org.springframework.beans.factory.config.BeanDefinition;
import org.springframework.beans.factory.config.RuntimeBeanReference;

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.springframework.batch.flow;
package org.springframework.batch.core.job.flow;
/**

View File

@@ -1,6 +1,5 @@
package org.springframework.batch.core.job.flow;
import org.springframework.batch.flow.AbstractState;
/**
* @author Dave Syer

View File

@@ -2,9 +2,6 @@ package org.springframework.batch.core.job.flow;
import org.springframework.batch.core.BatchStatus;
import org.springframework.batch.core.JobExecution;
import org.springframework.batch.flow.AbstractState;
import org.springframework.batch.flow.FlowExecution;
import org.springframework.batch.flow.State;
/**
* {@link State} implementation for ending a job if it is in progress and

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.springframework.batch.flow;
package org.springframework.batch.core.job.flow;
/**

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.springframework.batch.flow;
package org.springframework.batch.core.job.flow;
/**
* @author Dave Syer

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.springframework.batch.flow;
package org.springframework.batch.core.job.flow;
import java.util.Collection;

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.springframework.batch.flow;
package org.springframework.batch.core.job.flow;
/**
* @author Dave Syer

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.springframework.batch.flow;
package org.springframework.batch.core.job.flow;
/**
* @author Dave Syer

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.springframework.batch.flow;
package org.springframework.batch.core.job.flow;
/**
* @author Dave Syer

View File

@@ -23,10 +23,6 @@ import org.springframework.batch.core.Step;
import org.springframework.batch.core.StepExecution;
import org.springframework.batch.core.job.AbstractJob;
import org.springframework.batch.core.repository.JobRestartException;
import org.springframework.batch.flow.Flow;
import org.springframework.batch.flow.FlowExecution;
import org.springframework.batch.flow.FlowExecutionException;
import org.springframework.batch.flow.FlowExecutionListenerSupport;
import org.springframework.util.Assert;

View File

@@ -21,7 +21,6 @@ import org.springframework.batch.core.StartLimitExceededException;
import org.springframework.batch.core.Step;
import org.springframework.batch.core.StepExecution;
import org.springframework.batch.core.repository.JobRestartException;
import org.springframework.batch.flow.Flow;
/**
* Context and execution strategy for {@link FlowJob} to allow it to delegate

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.springframework.batch.flow;
package org.springframework.batch.core.job.flow;
import java.util.Collection;
import java.util.Collections;

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.springframework.batch.flow;
package org.springframework.batch.core.job.flow;
/**
* @author Dave Syer

View File

@@ -2,8 +2,6 @@ package org.springframework.batch.core.job.flow;
import org.springframework.batch.core.BatchStatus;
import org.springframework.batch.core.JobExecution;
import org.springframework.batch.flow.AbstractState;
import org.springframework.batch.flow.FlowExecution;
/**
* @author Dave Syer

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.springframework.batch.flow;
package org.springframework.batch.core.job.flow;
import java.util.Collection;
import java.util.HashMap;

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.springframework.batch.flow;
package org.springframework.batch.core.job.flow;
import java.util.ArrayList;
import java.util.Collection;

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.springframework.batch.flow;
package org.springframework.batch.core.job.flow;
/**

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.springframework.batch.flow;
package org.springframework.batch.core.job.flow;
import org.springframework.batch.repeat.ExitStatus;
import org.springframework.util.StringUtils;

View File

@@ -1,8 +1,6 @@
package org.springframework.batch.core.job.flow;
import org.springframework.batch.core.Step;
import org.springframework.batch.flow.AbstractState;
import org.springframework.batch.flow.State;
/**
* {@link State} implementation that delegates to a {@link JobFlowExecutor} to

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.springframework.batch.flow;
package org.springframework.batch.core.job.flow;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
@@ -25,10 +25,11 @@ import java.util.Collections;
import java.util.List;
import org.junit.Test;
import org.springframework.batch.flow.FlowExecution;
import org.springframework.batch.flow.FlowExecutionException;
import org.springframework.batch.flow.SimpleFlow;
import org.springframework.batch.flow.StateTransition;
import org.springframework.batch.core.job.flow.FlowExecution;
import org.springframework.batch.core.job.flow.FlowExecutionException;
import org.springframework.batch.core.job.flow.FlowExecutionListenerSupport;
import org.springframework.batch.core.job.flow.SimpleFlow;
import org.springframework.batch.core.job.flow.StateTransition;
/**
* @author Dave Syer

View File

@@ -13,11 +13,12 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.springframework.batch.flow;
package org.springframework.batch.core.job.flow;
import static org.junit.Assert.assertEquals;
import org.junit.Test;
import org.springframework.batch.core.job.flow.FlowExecutionException;
/**
* @author Dave Syer

View File

@@ -13,13 +13,13 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.springframework.batch.flow;
package org.springframework.batch.core.job.flow;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
import org.junit.Test;
import org.springframework.batch.flow.FlowExecution;
import org.springframework.batch.core.job.flow.FlowExecution;
/**
* @author Dave Syer

View File

@@ -35,8 +35,6 @@ import org.springframework.batch.core.UnexpectedJobExecutionException;
import org.springframework.batch.core.repository.JobRepository;
import org.springframework.batch.core.repository.support.MapJobRepositoryFactoryBean;
import org.springframework.batch.core.step.StepSupport;
import org.springframework.batch.flow.SimpleFlow;
import org.springframework.batch.flow.StateTransition;
import org.springframework.batch.repeat.ExitStatus;
import org.springframework.batch.support.transaction.ResourcelessTransactionManager;

View File

@@ -21,7 +21,6 @@ import org.springframework.batch.core.StartLimitExceededException;
import org.springframework.batch.core.Step;
import org.springframework.batch.core.StepExecution;
import org.springframework.batch.core.repository.JobRestartException;
import org.springframework.batch.flow.FlowExecution;
/**
* @author Dave Syer

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.springframework.batch.flow;
package org.springframework.batch.core.job.flow;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
@@ -22,8 +22,8 @@ import java.util.Arrays;
import java.util.Collections;
import org.junit.Test;
import org.springframework.batch.flow.FlowExecution;
import org.springframework.batch.flow.MaxValueFlowExecutionAggregator;
import org.springframework.batch.core.job.flow.FlowExecution;
import org.springframework.batch.core.job.flow.MaxValueFlowExecutionAggregator;
/**
* @author Dave Syer

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.springframework.batch.flow;
package org.springframework.batch.core.job.flow;
import static org.junit.Assert.assertEquals;
@@ -22,9 +22,9 @@ import java.util.Collection;
import org.easymock.EasyMock;
import org.junit.Test;
import org.springframework.batch.flow.Flow;
import org.springframework.batch.flow.FlowExecution;
import org.springframework.batch.flow.SplitState;
import org.springframework.batch.core.job.flow.Flow;
import org.springframework.batch.core.job.flow.FlowExecution;
import org.springframework.batch.core.job.flow.SplitState;
import org.springframework.core.task.SimpleAsyncTaskExecutor;

View File

@@ -13,10 +13,11 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.springframework.batch.flow;
package org.springframework.batch.core.job.flow;
import org.springframework.batch.flow.AbstractState;
import org.springframework.batch.flow.FlowExecution;
import org.springframework.batch.core.job.flow.AbstractState;
import org.springframework.batch.core.job.flow.FlowExecution;
import org.springframework.batch.core.job.flow.State;
/**
* Base class for {@link State} implementations.

View File

@@ -13,14 +13,14 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.springframework.batch.flow;
package org.springframework.batch.core.job.flow;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNull;
import static org.junit.Assert.assertTrue;
import org.junit.Test;
import org.springframework.batch.flow.StateTransition;
import org.springframework.batch.core.job.flow.StateTransition;
/**
* @author Dave Syer

View File

@@ -16,8 +16,8 @@ Use Case: Pause and Resume Job Execution
manual verification of business condition before continuing - a
sanity check on critical data. Assume that a job execution could
receive hundreds of resume signals, and this is a "normal"
situation. It does not look like a horrible mess if we look at the
history of the execution - e.g. like hundreds of restarts.
situation, so it does not create a horrible mess in the history of
the execution - e.g. looking like hundreds of restarts.
* Scope