RESOLVED - issue BATCH-398: That old stateful / stateless thing again....

http://jira.springframework.org/browse/BATCH-398

Fix JMX demo using an application context per job execution.
This commit is contained in:
dsyer
2008-03-01 09:59:01 +00:00
parent f2129d4ea7
commit 0eb239c9cb
9 changed files with 263 additions and 79 deletions

View File

@@ -29,18 +29,18 @@ public interface JobRegistry extends JobLocator {
/**
* Registers a {@link Job} at runtime.
*
* @param job the {@link Job} to be registered
* @param jobFactory the {@link Job} to be registered
*
* @throws DuplicateJobException if a configuration with the
* same name has already been registered.
* @throws DuplicateJobException if a factory with the same job name has
* already been registered.
*/
void register(Job job) throws DuplicateJobException;
void register(JobFactory jobFactory) throws DuplicateJobException;
/**
* Unregisters a previously registered {@link Job}. If it was
* not previously registered there is no error.
* Unregisters a previously registered {@link Job}. If it was not
* previously registered there is no error.
*
* @param job the {@link Job} to unregister.
* @param jobName the {@link Job} to unregister.
*/
void unregister(Job job);
void unregister(String jobName);
}