org.springframework.batch.core.configuration

## Interface JobRegistry

- All Superinterfaces:
    JobLocator, ListableJobLocator
  All Known Implementing Classes:
    MapJobRegistry

      public interface JobRegistry
      extends ListableJobLocator

  A runtime service registry interface for registering job configurations by `name`.
  Author:
    Dave Syer

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `register(JobFactory jobFactory)` Registers a `Job` at runtime.
    `void` | `unregister(java.lang.String jobName)` Unregisters a previously registered `Job`.

    - ### Methods inherited from interface org.springframework.batch.core.configuration.ListableJobLocator

      `getJobNames`

    - ### Methods inherited from interface org.springframework.batch.core.configuration.JobLocator

      `getJob`

- - ### Method Detail

    - #### register

          void register(JobFactory jobFactory)
                 throws DuplicateJobException

      Registers a `Job` at runtime.
      Parameters:
        `jobFactory` - the `Job` to be registered
      Throws:
        `DuplicateJobException` - if a factory with the same job name has already been registered.

    - #### unregister

          void unregister(java.lang.String jobName)

      Unregisters a previously registered `Job`. If it was not previously registered there is no error.
      Parameters:
        `jobName` - the `Job` to unregister.