Class StepExecutionApplicationEventAdvice
- java.lang.Object
- org.springframework.batch.sample.jmx.StepExecutionApplicationEventAdvice
- All Implemented Interfaces:
org.springframework.beans.factory.Aware
,org.springframework.context.ApplicationEventPublisherAware
public class StepExecutionApplicationEventAdvice extends java.lang.Object implements org.springframework.context.ApplicationEventPublisherAware
Wraps calls for methods takingStepExecution
as an argument and publishes notifications in the form ofApplicationEvent
.- Author:
- Dave Syer
Constructor Summary
Constructors Constructor Description StepExecutionApplicationEventAdvice()
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
after(org.aspectj.lang.JoinPoint jp, StepExecution stepExecution)
void
before(org.aspectj.lang.JoinPoint jp, StepExecution stepExecution)
void
onError(org.aspectj.lang.JoinPoint jp, StepExecution stepExecution, java.lang.Throwable t)
void
setApplicationEventPublisher(org.springframework.context.ApplicationEventPublisher applicationEventPublisher)
Method Detail
setApplicationEventPublisher
public void setApplicationEventPublisher(org.springframework.context.ApplicationEventPublisher applicationEventPublisher)
- Specified by:
setApplicationEventPublisher
in interfaceorg.springframework.context.ApplicationEventPublisherAware
before
public void before(org.aspectj.lang.JoinPoint jp, StepExecution stepExecution)
after
public void after(org.aspectj.lang.JoinPoint jp, StepExecution stepExecution)
onError
public void onError(org.aspectj.lang.JoinPoint jp, StepExecution stepExecution, java.lang.Throwable t)