Package org.springframework.batch.core.jsr

Examples of org.springframework.batch.core.jsr.StepListenerAdapter


    builder.transactionManager(transactionManager);
    for (Object listener : stepExecutionListeners) {
      if(listener instanceof StepExecutionListener) {
        builder.listener((StepExecutionListener) listener);
      } else if(listener instanceof javax.batch.api.listener.StepListener) {
        builder.listener(new StepListenerAdapter((javax.batch.api.listener.StepListener) listener));
      }
    }
  }
View Full Code Here


      if (listener instanceof StepExecutionListener) {
        StepExecutionListener stepExecutionListener = (StepExecutionListener) listener;
        stepExecutionListeners.add(stepExecutionListener);
      }
      if(listener instanceof javax.batch.api.listener.StepListener) {
        StepExecutionListener stepExecutionListener = new StepListenerAdapter((javax.batch.api.listener.StepListener) listener);
        stepExecutionListeners.add(stepExecutionListener);
      }
      if (listener instanceof ChunkListener) {
        ChunkListener chunkListener = (ChunkListener) listener;
        chunkListeners.add(chunkListener);
View Full Code Here

TOP

Related Classes of org.springframework.batch.core.jsr.StepListenerAdapter

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.