org.springframework.batch.core.job
Class SimpleJob

java.lang.Object
  extended by org.springframework.batch.core.job.AbstractJob
      extended by org.springframework.batch.core.job.SimpleJob
All Implemented Interfaces:
Job, BeanNameAware, InitializingBean

public class SimpleJob
extends AbstractJob

Simple implementation of (@link Job} interface providing the ability to run a JobExecution. Sequentially executes a job by iterating through its list of steps.

Author:
Lucas Ward, Dave Syer

Constructor Summary
SimpleJob()
           
 
Method Summary
 void execute(JobExecution execution)
          Run the specified job by looping through the steps and delegating to the Step.
 
Methods inherited from class org.springframework.batch.core.job.AbstractJob
addStep, afterPropertiesSet, getCompositeListener, getJobRepository, getName, getSteps, isRestartable, registerJobExecutionListener, setBeanName, setJobExecutionListeners, setJobRepository, setName, setRestartable, setSteps, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SimpleJob

public SimpleJob()
Method Detail

execute

public void execute(JobExecution execution)
             throws JobExecutionException
Run the specified job by looping through the steps and delegating to the Step.

Parameters:
execution - a JobExecution
Throws:
StartLimitExceededException - if start limit of one of the steps was exceeded
JobExecutionException
See Also:
Job.execute(org.springframework.batch.core.JobExecution)


Copyright © 2009 SpringSource. All Rights Reserved.