OPEN - issue BATCH-1338: Allow segregation of jobs by type or origin

Add group aware job factory and re-org interfaces in JobLocator-JobRegistry (not backwards compatible but probably not a change for anyone outside the framework)
This commit is contained in:
dsyer
2009-09-08 07:00:31 +00:00
parent 49420d633e
commit ac08658c48
15 changed files with 283 additions and 174 deletions

View File

@@ -20,7 +20,7 @@ import java.util.HashMap;
import java.util.Map;
import org.springframework.batch.core.Job;
import org.springframework.batch.core.configuration.ListableJobRegistry;
import org.springframework.batch.core.configuration.ListableJobLocator;
import org.springframework.batch.core.launch.NoSuchJobException;
import org.springframework.beans.BeanWrapperImpl;
import org.springframework.beans.BeansException;
@@ -32,7 +32,7 @@ import org.springframework.util.Assert;
public class DefaultJobLoader implements JobLoader, ApplicationContextAware {
private ListableJobRegistry registry;
private ListableJobLocator registry;
private ApplicationContext applicationContext;
@@ -42,7 +42,7 @@ public class DefaultJobLoader implements JobLoader, ApplicationContextAware {
this.applicationContext = applicationContext;
}
public void setRegistry(ListableJobRegistry registry) {
public void setRegistry(ListableJobLocator registry) {
this.registry = registry;
}