|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.batch.core.configuration.support.DefaultJobLoader
public class DefaultJobLoader
Default implementation of JobLoader
. Uses a JobRegistry
to
manage a population of loaded jobs and clears them up when asked.
Constructor Summary | |
---|---|
DefaultJobLoader()
Default constructor useful for declarative configuration. |
|
DefaultJobLoader(JobRegistry jobRegistry)
Create a job loader with the job registry provided. |
Method Summary | |
---|---|
void |
clear()
Unregister all the jobs and close all the contexts created by this loader. |
Collection<Job> |
load(ApplicationContextFactory factory)
Load an application context and register all the jobs. |
Collection<Job> |
reload(ApplicationContextFactory factory)
Load an application context and register all the jobs, having first unregistered them if already registered. |
void |
setJobRegistry(JobRegistry jobRegistry)
The JobRegistry to use for jobs created. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultJobLoader()
public DefaultJobLoader(JobRegistry jobRegistry)
jobRegistry
- a JobRegistry
Method Detail |
---|
public void setJobRegistry(JobRegistry jobRegistry)
JobRegistry
to use for jobs created.
jobRegistry
- public void clear()
clear
in interface JobLoader
JobLoader.clear()
public Collection<Job> reload(ApplicationContextFactory factory)
JobLoader
reload
in interface JobLoader
factory
- a factory for an application context (containing jobs)
public Collection<Job> load(ApplicationContextFactory factory) throws DuplicateJobException
JobLoader
load
in interface JobLoader
factory
- a factory for an application context (containing jobs)
DuplicateJobException
- if a job with the same name was already
registered
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |