Interface JobRegistry
- All Superinterfaces:
JobLocator,ListableJobLocator
- All Known Implementing Classes:
MapJobRegistry
A runtime service registry interface for registering job configurations by
name.- Author:
- Dave Syer
-
Method Summary
Modifier and TypeMethodDescriptionvoidregister(JobFactory jobFactory) Registers aJobat runtime.voidunregister(String jobName) Unregisters a previously registeredJob.Methods inherited from interface org.springframework.batch.core.configuration.JobLocator
getJobMethods inherited from interface org.springframework.batch.core.configuration.ListableJobLocator
getJobNames
-
Method Details
-
register
Registers aJobat runtime.- Parameters:
jobFactory- theJobto be registered- Throws:
DuplicateJobException- if a factory with the same job name has already been registered.
-
unregister
Unregisters a previously registeredJob. If it was not previously registered, there is no error.- Parameters:
jobName- theJobto unregister.
-