Class SplibBatchAdvice
java.lang.Object
jp.ecuacion.splib.batch.advice.SplibBatchAdvice
Provides needed advices for batch.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringGets current job name.static StringGets current step name.static StringGets current tasklet or chunk name.voidonBeforeChunkExecute(org.aspectj.lang.JoinPoint joinPoint) Is executed right beforeChunk.execute(..)is executed.voidonBeforeTaskletExecute(org.aspectj.lang.JoinPoint joinPoint) Is executed right beforeTasklet.execute(..)is executed.static voidsetCurrentJob(String currentJob) Sets current job name.static voidsetCurrentStep(String currentStep) Sets current step name.static voidsetCurrentTasklet(String currentTaskletOrChunk) Sets current tasklet or chunk name.
-
Constructor Details
-
SplibBatchAdvice
public SplibBatchAdvice()
-
-
Method Details
-
onBeforeTaskletExecute
public void onBeforeTaskletExecute(org.aspectj.lang.JoinPoint joinPoint) Is executed right beforeTasklet.execute(..)is executed.- Parameters:
joinPoint- joinPoint
-
onBeforeChunkExecute
public void onBeforeChunkExecute(org.aspectj.lang.JoinPoint joinPoint) Is executed right beforeChunk.execute(..)is executed.The implementation with
Chunkis not concreted. Check when you use this.- Parameters:
joinPoint- joinPoint
-
getCurrentJob
Gets current job name. -
setCurrentJob
Sets current job name.- Parameters:
currentJob- currentJob
-
getCurrentStep
Gets current step name. -
setCurrentStep
Sets current step name.- Parameters:
currentStep- currentStep
-
getCurrentTaskletOrChunk
Gets current tasklet or chunk name.- Returns:
- current tasklet or chunk name
-
setCurrentTasklet
Sets current tasklet or chunk name.- Parameters:
currentTaskletOrChunk- current tasklet or chunk name
-