org.springframework.batch.core.jsr.configuration.xml

## Class JobFactoryBean

- java.lang.Object
- - org.springframework.batch.core.jsr.configuration.xml.JobFactoryBean

- All Implemented Interfaces:
    org.springframework.beans.factory.FactoryBean<FlowJob>, org.springframework.beans.factory.SmartFactoryBean<FlowJob>

      public class JobFactoryBean
      extends java.lang.Object
      implements org.springframework.beans.factory.SmartFactoryBean<FlowJob>

  This `FactoryBean` is used by the JSR-352 namespace parser to create `FlowJob` objects. It stores all of the properties that are configurable on the <job/>.
  Since:
    3.0
  Author:
    Michael Minella

- - ### Field Summary

    - ### Fields inherited from interface org.springframework.beans.factory.FactoryBean

      `OBJECT_TYPE_ATTRIBUTE`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `JobFactoryBean(java.lang.String name)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `JobRepository` | `getJobRepository()`
    `FlowJob` | `getObject()`
    `java.lang.Class<FlowJob>` | `getObjectType()`
    `boolean` | `isEagerInit()`
    `boolean` | `isPrototype()`
    `boolean` | `isSingleton()`
    `void` | `setFlow(Flow flow)`
    `void` | `setJobExecutionListeners(java.lang.Object[] jobListeners)` Addresses wrapping `JobListener` as needed to be used with the framework.
    `void` | `setJobExplorer(JobExplorer jobExplorer)`
    `void` | `setJobParametersIncrementer(JobParametersIncrementer jobParametersIncrementer)`
    `void` | `setJobParametersValidator(JobParametersValidator jobParametersValidator)`
    `void` | `setJobRepository(JobRepository jobRepository)`
    `void` | `setRestartable(java.lang.Boolean restartable)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### JobFactoryBean

          public JobFactoryBean(java.lang.String name)

  - ### Method Detail

    - #### getObject

          public final FlowJob getObject()
                                  throws java.lang.Exception

      Specified by:
        `getObject` in interface `org.springframework.beans.factory.FactoryBean<FlowJob>`
      Throws:
        `java.lang.Exception`

    - #### setJobExplorer

          public void setJobExplorer(JobExplorer jobExplorer)

    - #### setRestartable

          public void setRestartable(java.lang.Boolean restartable)

    - #### setJobRepository

          public void setJobRepository(JobRepository jobRepository)

    - #### setJobParametersValidator

          public void setJobParametersValidator(JobParametersValidator jobParametersValidator)

    - #### getJobRepository

          public JobRepository getJobRepository()

    - #### setJobParametersIncrementer

          public void setJobParametersIncrementer(JobParametersIncrementer jobParametersIncrementer)

    - #### setFlow

          public void setFlow(Flow flow)

    - #### getObjectType

          public java.lang.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>`

    - #### setJobExecutionListeners

          public void setJobExecutionListeners(java.lang.Object[] jobListeners)

      Addresses wrapping `JobListener` as needed to be used with the framework.
      Parameters:
        `jobListeners` - a list of all job listeners