public interface JobLoader
Modifier and Type | Method and Description |
---|---|
void |
clear()
Unregister all the jobs and close all the contexts created by this
loader.
|
java.util.Collection<Job> |
load(ApplicationContextFactory factory)
Load an application context and register all the jobs.
|
java.util.Collection<Job> |
reload(ApplicationContextFactory factory)
Load an application context and register all the jobs, having first
unregistered them if already registered.
|
java.util.Collection<Job> load(ApplicationContextFactory factory) throws DuplicateJobException
factory
- a factory for an application context (containing jobs)DuplicateJobException
- if a job with the same name was already
registeredjava.util.Collection<Job> reload(ApplicationContextFactory factory)
factory
- a factory for an application context (containing jobs)void clear()