Class JobParserJobFactoryBean

java.lang.Object
org.springframework.batch.core.configuration.xml.JobParserJobFactoryBean
All Implemented Interfaces:
org.springframework.beans.factory.FactoryBean<FlowJob>, org.springframework.beans.factory.SmartFactoryBean<FlowJob>

public class JobParserJobFactoryBean extends Object implements org.springframework.beans.factory.SmartFactoryBean<FlowJob>
This FactoryBean is used by the batch namespace parser to create FlowJob objects. It stores all of the properties that are configurable on the <job/>.
Since:
2.0.1
Author:
Dan Garrette, Dave Syer
  • Constructor Details

    • JobParserJobFactoryBean

      public JobParserJobFactoryBean(String name)
      Constructor for the factory bean that initializes the name.
      Parameters:
      name - The name to be used by the factory bean.
  • Method Details

    • getObject

      public final FlowJob getObject() throws Exception
      Specified by:
      getObject in interface org.springframework.beans.factory.FactoryBean<FlowJob>
      Throws:
      Exception
    • setRestartable

      public void setRestartable(Boolean restartable)
      Set the restartable flag for the factory bean.
      Parameters:
      restartable - The restartable flag to be used by the factory bean.
    • setJobRepository

      public void setJobRepository(JobRepository jobRepository)
      Set the JobRepository for the factory bean.
      Parameters:
      jobRepository - The JobRepository to be used by the factory bean.
    • setJobParametersValidator

      public void setJobParametersValidator(JobParametersValidator jobParametersValidator)
      Set the JobParametersValidator for the factory bean.
      Parameters:
      jobParametersValidator - The JobParametersValidator to be used by the factory bean.
    • getJobRepository

      public JobRepository getJobRepository()
      Returns:
      The JobRepository used by the factory bean.
    • setJobExecutionListeners

      public void setJobExecutionListeners(JobExecutionListener[] jobExecutionListeners)
    • setJobParametersIncrementer

      public void setJobParametersIncrementer(JobParametersIncrementer jobParametersIncrementer)
      Set the JobParametersIncrementer for the factory bean.
      Parameters:
      jobParametersIncrementer - The JobParametersIncrementer to be used by the factory bean.
    • setFlow

      public void setFlow(Flow flow)
      Set the flow for the factory bean.
      Parameters:
      flow - The Flow to be used by the factory bean.
    • getObjectType

      public Class<FlowJob> getObjectType()
      Specified by:
      getObjectType in interface org.springframework.beans.factory.FactoryBean<FlowJob>
    • isSingleton

      public boolean isSingleton()
      Specified by:
      isSingleton in interface org.springframework.beans.factory.FactoryBean<FlowJob>
    • isEagerInit

      public boolean isEagerInit()
      Specified by:
      isEagerInit in interface org.springframework.beans.factory.SmartFactoryBean<FlowJob>
    • isPrototype

      public boolean isPrototype()
      Specified by:
      isPrototype in interface org.springframework.beans.factory.SmartFactoryBean<FlowJob>