Interface JobLocator
- All Known Subinterfaces:
JobRegistry
,ListableJobLocator
- All Known Implementing Classes:
MapJobRegistry
public interface JobLocator
A runtime service locator interface for retrieving job configurations byname
.- Author:
- Dave Syer, Mahmoud Ben Hassine
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Job
getJob(java.lang.String name)
Locates aJob
at runtime.
Method Detail
getJob
Job getJob(@Nullable java.lang.String name) throws NoSuchJobException
Locates aJob
at runtime.- Parameters:
name
- the name of theJob
which should be unique- Returns:
- a
Job
identified by the given name - Throws:
NoSuchJobException
- if the required configuration can not be found.