public class LoggingAfterJobListener extends Object implements org.springframework.batch.core.JobExecutionListener, org.springframework.core.Ordered
LoggingListener removes the variable from the MDC in its afterStep
method. We re-set it here at the beginning of the execution of all afterJob methods of JobExecutionListeners.LoggingListener| Constructor and Description |
|---|
LoggingAfterJobListener() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterJob(org.springframework.batch.core.JobExecution jobExecution) |
void |
beforeJob(org.springframework.batch.core.JobExecution jobExecution) |
int |
getOrder() |
void |
setJobLogFileNameCreator(JobLogFileNameCreator jobLogFileNameCreator) |
public void beforeJob(org.springframework.batch.core.JobExecution jobExecution)
beforeJob in interface org.springframework.batch.core.JobExecutionListenerpublic void afterJob(org.springframework.batch.core.JobExecution jobExecution)
afterJob in interface org.springframework.batch.core.JobExecutionListenerpublic int getOrder()
getOrder in interface org.springframework.core.Ordered@Autowired(required=false) public void setJobLogFileNameCreator(JobLogFileNameCreator jobLogFileNameCreator)
Copyright © 2018 codecentric AG. All rights reserved.