コード例 #1
0
 @Override
 public void beforeStep(StepExecution stepExecution) {
   LOG.info(">>>>>>>>>>>>>>>>>>>>>>>> beforeStep called.");
   try {
     contentService.load();
   } catch (Exception e) {
     LOG.error("error: " + e.getMessage());
     throw new RuntimeException(e);
   }
 }
コード例 #2
0
 @Override
 public ExitStatus afterStep(StepExecution stepExecution) {
   LOG.info("<<<<<<<<<<<<<<<<<<<<<<<<<< afterStep called.");
   try {
     contentService.save();
   } catch (Exception e) {
     LOG.error("error: " + e.getMessage());
     throw new RuntimeException(e);
   }
   LOG.info("============ ExitStatus.COMPLETED returned.");
   return ExitStatus.COMPLETED;
 }