Package org.springframework.batch.core.job

Examples of org.springframework.batch.core.job.SimpleJob.afterPropertiesSet()


         }
      }
      mainJob
            .setJobExecutionListeners(new JobExecutionListener[] { mainJobExecutionListener });
      mainJob.setJobRepository(jobRepository);
      mainJob.afterPropertiesSet();
      JobFactory jobFactory = new ReferenceJobFactory(mainJob);
      jobRegistry.register(jobFactory);
      logger.info("registered job: " + mainJob.getName());
      JobParameters mainJobParameters = new JobParameters(mainJobParams);
      JobExecution mainJobExecution =
View Full Code Here


    step.setTransactionManager(repositoryFactory.getTransactionManager());
    step.setJobRepository(jobRepository);
    step.afterPropertiesSet();
    job.addStep(step);
    job.setJobRepository(jobRepository);
    job.afterPropertiesSet();

    jobLauncher.run(job, new JobParametersBuilder().addString("test", getClass().getName()).toJobParameters());

    Thread.sleep(500L);
    JobExplorer explorer = new MapJobExplorerFactoryBean(repositoryFactory).getObject();
View Full Code Here

    }
    SimpleJob job = new SimpleJob(getName());
    super.enhance(job);
    job.setSteps(steps);
    try {
      job.afterPropertiesSet();
    }
    catch (Exception e) {
      throw new JobBuilderException(e);
    }
    return job;
View Full Code Here

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.