/** * @see org.springframework.batch.core.listener.CompositeChunkListener#beforeChunk(ChunkContext context) */ @Override public void beforeChunk(ChunkContext context) { try { chunkListener.beforeChunk(context); } catch (RuntimeException e) { throw new StepListenerFailedException("Error in beforeChunk.", getTargetException(e)); } }
@Test public void testBeforeChunk(){ listener.beforeChunk(chunkContext); compositeListener.beforeChunk(chunkContext); }
chunkListener.beforeChunk(chunkContext);
/** * * @see org.springframework.batch.core.listener.CompositeChunkListener#beforeChunk() */ public void beforeChunk() { try { chunkListener.beforeChunk(); } catch (RuntimeException e) { throw new StepListenerFailedException("Error in beforeChunk.", e); } }
/** * * @see org.springframework.batch.core.listener.CompositeChunkListener#beforeChunk(ChunkContext context) */ @Override public void beforeChunk(ChunkContext context) { try { chunkListener.beforeChunk(context); } catch (RuntimeException e) { throw new StepListenerFailedException("Error in beforeChunk.", e); } }
/** * @see org.springframework.batch.core.listener.CompositeChunkListener#beforeChunk(ChunkContext context) */ @Override public void beforeChunk(ChunkContext context) { try { chunkListener.beforeChunk(context); } catch (RuntimeException e) { throw new StepListenerFailedException("Error in beforeChunk.", getTargetException(e)); } }
/** * @see org.springframework.batch.core.listener.CompositeChunkListener#beforeChunk(ChunkContext context) */ @Override public void beforeChunk(ChunkContext context) { try { chunkListener.beforeChunk(context); } catch (RuntimeException e) { throw new StepListenerFailedException("Error in beforeChunk.", getTargetException(e)); } }
chunkListener.beforeChunk(chunkContext);
chunkListener.beforeChunk(chunkContext);
chunkListener.beforeChunk(chunkContext);