|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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. An optional
StepRegistry might also be set to register the step(s) available for
each registered job.
| Constructor Summary | |
|---|---|
DefaultJobLoader()
Default constructor useful for declarative configuration. |
|
DefaultJobLoader(JobRegistry jobRegistry)
Creates a job loader with the job registry provided. |
|
DefaultJobLoader(JobRegistry jobRegistry,
StepRegistry stepRegistry)
Creates a job loader with the job and step registries provided. |
|
| Method Summary | |
|---|---|
void |
afterPropertiesSet()
|
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. |
void |
setStepRegistry(StepRegistry stepRegistry)
The StepRegistry to use for the steps of created jobs. |
| 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
public DefaultJobLoader(JobRegistry jobRegistry,
StepRegistry stepRegistry)
jobRegistry - a JobRegistrystepRegistry - a StepRegistry| Method Detail |
|---|
public void setJobRegistry(JobRegistry jobRegistry)
JobRegistry to use for jobs created.
jobRegistry - the job registrypublic void setStepRegistry(StepRegistry stepRegistry)
StepRegistry to use for the steps of created jobs.
stepRegistry - the step registrypublic void clear()
clear in interface JobLoaderJobLoader.clear()public Collection<Job> reload(ApplicationContextFactory factory)
JobLoader
reload in interface JobLoaderfactory - a factory for an application context (containing jobs)
public Collection<Job> load(ApplicationContextFactory factory)
throws DuplicateJobException
JobLoader
load in interface JobLoaderfactory - a factory for an application context (containing jobs)
DuplicateJobException - if a job with the same name was already
registeredpublic void afterPropertiesSet()
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||