Remove usage of ListableJobLocator in TaskExecutorJobOperator
This commit is contained in:
@@ -90,7 +90,7 @@ public class SimpleJobOperator extends TaskExecutorJobLauncher implements JobOpe
|
||||
private static final String ILLEGAL_STATE_MSG = "Illegal state (only happens on a race condition): "
|
||||
+ "%s with name=%s and parameters=%s";
|
||||
|
||||
protected ListableJobLocator jobRegistry;
|
||||
protected JobRegistry jobRegistry;
|
||||
|
||||
protected JobParametersConverter jobParametersConverter = new DefaultJobParametersConverter();
|
||||
|
||||
@@ -117,10 +117,10 @@ public class SimpleJobOperator extends TaskExecutorJobLauncher implements JobOpe
|
||||
}
|
||||
|
||||
/**
|
||||
* Public setter for the {@link ListableJobLocator}.
|
||||
* @param jobRegistry the {@link ListableJobLocator} to set
|
||||
* Public setter for the {@link JobRegistry}.
|
||||
* @param jobRegistry the {@link JobRegistry} to set
|
||||
*/
|
||||
public void setJobRegistry(ListableJobLocator jobRegistry) {
|
||||
public void setJobRegistry(JobRegistry jobRegistry) {
|
||||
this.jobRegistry = jobRegistry;
|
||||
}
|
||||
|
||||
|
||||
@@ -16,7 +16,6 @@
|
||||
package org.springframework.batch.core.launch.support;
|
||||
|
||||
import org.springframework.batch.core.configuration.JobRegistry;
|
||||
import org.springframework.batch.core.configuration.ListableJobLocator;
|
||||
import org.springframework.batch.core.launch.JobOperator;
|
||||
import org.springframework.batch.core.repository.JobRepository;
|
||||
|
||||
@@ -43,11 +42,11 @@ import org.springframework.batch.core.repository.JobRepository;
|
||||
public class TaskExecutorJobOperator extends SimpleJobOperator {
|
||||
|
||||
/**
|
||||
* Public setter for the {@link ListableJobLocator}.
|
||||
* @param jobRegistry the {@link ListableJobLocator} to set
|
||||
* Public setter for the {@link JobRegistry}.
|
||||
* @param jobRegistry the {@link JobRegistry} to set
|
||||
*/
|
||||
@Override
|
||||
public void setJobRegistry(ListableJobLocator jobRegistry) {
|
||||
public void setJobRegistry(JobRegistry jobRegistry) {
|
||||
this.jobRegistry = jobRegistry;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user