Package org.springframework.batch.integration

Source Code of org.springframework.batch.integration.JobSupport

package org.springframework.batch.integration;

import org.springframework.batch.core.Job;
import org.springframework.batch.core.JobExecution;
import org.springframework.batch.core.JobParametersIncrementer;
import org.springframework.batch.core.JobParametersValidator;
import org.springframework.batch.core.job.DefaultJobParametersValidator;

public class JobSupport implements Job {
 
  String name;
 
  public JobSupport(String name){
    this.name = name;
  }

  public void execute(JobExecution execution) {
  }

  public String getName() {
    return name;
  }

  public boolean isRestartable() {
    return false;
  }
 
  public JobParametersIncrementer getJobParametersIncrementer() {
    return null;
  }
 
  public JobParametersValidator getJobParametersValidator() {
    return new DefaultJobParametersValidator();
  }

}
TOP

Related Classes of org.springframework.batch.integration.JobSupport

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.