org.springframework.batch.sample.jmx
Class StepExecutionApplicationEventAdvice

java.lang.Object
  extended by org.springframework.batch.sample.jmx.StepExecutionApplicationEventAdvice
All Implemented Interfaces:
ApplicationEventPublisherAware

public class StepExecutionApplicationEventAdvice
extends Object
implements ApplicationEventPublisherAware

Wraps calls for methods taking StepExecution as an argument and publishes notifications in the form of ApplicationEvent.

Author:
Dave Syer

Constructor Summary
StepExecutionApplicationEventAdvice()
           
 
Method Summary
 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, Throwable t)
           
 void setApplicationEventPublisher(ApplicationEventPublisher applicationEventPublisher)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StepExecutionApplicationEventAdvice

public StepExecutionApplicationEventAdvice()
Method Detail

setApplicationEventPublisher

public void setApplicationEventPublisher(ApplicationEventPublisher applicationEventPublisher)
Specified by:
setApplicationEventPublisher in interface 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,
                    Throwable t)


Copyright © 2009 SpringSource. All Rights Reserved.