接口 JobLocator
- 所有已知子接口:
JobRegistry
,ListableJobLocator
- 所有已知实现类:
MapJobRegistry
public interface JobLocator
A runtime service locator interface for retrieving job configurations byname
.- 作者:
- Dave Syer, Mahmoud Ben Hassine
方法详细资料
getJob
Job getJob(@Nullable java.lang.String name) throws NoSuchJobException
Locates aJob
at runtime.- 参数:
name
- the name of theJob
which should be unique- 返回:
- a
Job
identified by the given name - 抛出:
NoSuchJobException
- if the required configuration can not be found.