public interface JobLoader
Modifier and Type | Method and Description |
---|---|
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.
|
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
registeredCollection<Job> reload(ApplicationContextFactory factory)
factory
- a factory for an application context (containing jobs)void clear()
Copyright © 2014 Pivotal. All rights reserved.