org.springframework.batch.core.configuration.support

## Class ReferenceJobFactory

- java.lang.Object
- - org.springframework.batch.core.configuration.support.ReferenceJobFactory

- All Implemented Interfaces:
    JobFactory

      public class ReferenceJobFactory
      extends java.lang.Object
      implements JobFactory

  A `JobFactory` that just keeps a reference to a `Job`. It never modifies its `Job`.
  Author:
    Dave Syer

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `ReferenceJobFactory(Job job)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `Job` | `createJob()` Just return the instance passed in on initialization.
    `java.lang.String` | `getJobName()` Just return the name of instance passed in on initialization.

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

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

- - ### Constructor Detail

    - #### ReferenceJobFactory

          public ReferenceJobFactory(Job job)

      Parameters:
        `job` - the `Job` to return from `createJob()`.

  - ### Method Detail

    - #### createJob

          public final Job createJob()

      Just return the instance passed in on initialization.
      Specified by:
        `createJob` in interface `JobFactory`
      See Also:
        `JobFactory.createJob()`

    - #### getJobName

          public java.lang.String getJobName()

      Just return the name of instance passed in on initialization.
      Specified by:
        `getJobName` in interface `JobFactory`
      See Also:
        `JobFactory.getJobName()`