类 StepExecutionApplicationEventAdvice
- java.lang.Object
- org.springframework.batch.sample.jmx.StepExecutionApplicationEventAdvice
- 所有已实现的接口:
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 takingStepExecutionas an argument and publishes notifications in the form ofApplicationEvent.- 作者:
- Dave Syer
构造器概要
构造器 构造器 说明 StepExecutionApplicationEventAdvice()
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 voidafter(org.aspectj.lang.JoinPoint jp, StepExecution stepExecution)voidbefore(org.aspectj.lang.JoinPoint jp, StepExecution stepExecution)voidonError(org.aspectj.lang.JoinPoint jp, StepExecution stepExecution, java.lang.Throwable t)voidsetApplicationEventPublisher(org.springframework.context.ApplicationEventPublisher applicationEventPublisher)
构造器详细资料
StepExecutionApplicationEventAdvice
public StepExecutionApplicationEventAdvice()
方法详细资料
setApplicationEventPublisher
public void setApplicationEventPublisher(org.springframework.context.ApplicationEventPublisher applicationEventPublisher)
- 指定者:
setApplicationEventPublisher在接口中org.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)