EMMA Coverage Report (generated Thu Jan 24 13:37:04 CST 2013)
[all classes][org.springframework.batch.core.listener]

COVERAGE SUMMARY FOR SOURCE FILE [StepListenerSupport.java]

nameclass, %method, %block, %line, %
StepListenerSupport.java100% (1/1)82%  (14/17)85%  (17/20)82%  (14/17)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class StepListenerSupport100% (1/1)82%  (14/17)85%  (17/20)82%  (14/17)
afterProcess (Object, Object): void 0%   (0/1)0%   (0/1)0%   (0/1)
beforeProcess (Object): void 0%   (0/1)0%   (0/1)0%   (0/1)
onProcessError (Object, Exception): void 0%   (0/1)0%   (0/1)0%   (0/1)
StepListenerSupport (): void 100% (1/1)100% (3/3)100% (1/1)
afterChunk (): void 100% (1/1)100% (1/1)100% (1/1)
afterRead (Object): void 100% (1/1)100% (1/1)100% (1/1)
afterStep (StepExecution): ExitStatus 100% (1/1)100% (2/2)100% (1/1)
afterWrite (List): void 100% (1/1)100% (1/1)100% (1/1)
beforeChunk (): void 100% (1/1)100% (1/1)100% (1/1)
beforeRead (): void 100% (1/1)100% (1/1)100% (1/1)
beforeStep (StepExecution): void 100% (1/1)100% (1/1)100% (1/1)
beforeWrite (List): void 100% (1/1)100% (1/1)100% (1/1)
onReadError (Exception): void 100% (1/1)100% (1/1)100% (1/1)
onSkipInProcess (Object, Throwable): void 100% (1/1)100% (1/1)100% (1/1)
onSkipInRead (Throwable): void 100% (1/1)100% (1/1)100% (1/1)
onSkipInWrite (Object, Throwable): void 100% (1/1)100% (1/1)100% (1/1)
onWriteError (Exception, List): void 100% (1/1)100% (1/1)100% (1/1)

1/*
2 * Copyright 2006-2008 the original author or authors.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 *      http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16package org.springframework.batch.core.listener;
17 
18import java.util.List;
19 
20import org.springframework.batch.core.ChunkListener;
21import org.springframework.batch.core.ExitStatus;
22import org.springframework.batch.core.ItemProcessListener;
23import org.springframework.batch.core.ItemReadListener;
24import org.springframework.batch.core.ItemWriteListener;
25import org.springframework.batch.core.SkipListener;
26import org.springframework.batch.core.StepExecution;
27import org.springframework.batch.core.StepExecutionListener;
28import org.springframework.batch.core.StepListener;
29 
30/**
31 * Basic no-op implementations of all {@link StepListener} interfaces.
32 * 
33 * @author Lucas Ward
34 * @author Robert Kasanicky
35 */
36public class StepListenerSupport<T,S> implements StepExecutionListener, ChunkListener,
37                ItemReadListener<T>, ItemProcessListener<T,S>, ItemWriteListener<S>, SkipListener<T, S> {
38 
39        /* (non-Javadoc)
40         * @see org.springframework.batch.core.StepExecutionListener#afterStep(org.springframework.batch.core.StepExecution)
41         */
42        public ExitStatus afterStep(StepExecution stepExecution) {
43                return null;
44        }
45 
46        /* (non-Javadoc)
47         * @see org.springframework.batch.core.StepExecutionListener#beforeStep(org.springframework.batch.core.StepExecution)
48         */
49        public void beforeStep(StepExecution stepExecution) {
50        }
51 
52        /* (non-Javadoc)
53         * @see org.springframework.batch.core.domain.ChunkListener#afterChunk()
54         */
55        public void afterChunk() {
56        }
57 
58        /* (non-Javadoc)
59         * @see org.springframework.batch.core.domain.ChunkListener#beforeChunk()
60         */
61        public void beforeChunk() {
62        }
63 
64        /* (non-Javadoc)
65         * @see org.springframework.batch.core.domain.ItemReadListener#afterRead(java.lang.Object)
66         */
67        public void afterRead(T item) {
68        }
69 
70        /* (non-Javadoc)
71         * @see org.springframework.batch.core.domain.ItemReadListener#beforeRead()
72         */
73        public void beforeRead() {
74        }
75 
76        /* (non-Javadoc)
77         * @see org.springframework.batch.core.domain.ItemReadListener#onReadError(java.lang.Exception)
78         */
79        public void onReadError(Exception ex) {
80        }
81 
82        /* (non-Javadoc)
83         * @see org.springframework.batch.core.ItemWriteListener#afterWrite(java.util.List)
84         */
85        public void afterWrite(List<? extends S> items) {
86        }
87 
88        /* (non-Javadoc)
89         * @see org.springframework.batch.core.ItemWriteListener#beforeWrite(java.util.List)
90         */
91        public void beforeWrite(List<? extends S> items) {
92        }
93 
94        /* (non-Javadoc)
95         * @see org.springframework.batch.core.ItemWriteListener#onWriteError(java.lang.Exception, java.util.List)
96         */
97        public void onWriteError(Exception exception, List<? extends S> items) {
98        }
99 
100        /* (non-Javadoc)
101         * @see org.springframework.batch.core.ItemProcessListener#afterProcess(java.lang.Object, java.lang.Object)
102         */
103        public void afterProcess(T item, S result) {
104        }
105 
106        /* (non-Javadoc)
107         * @see org.springframework.batch.core.ItemProcessListener#beforeProcess(java.lang.Object)
108         */
109        public void beforeProcess(T item) {
110        }
111 
112        /* (non-Javadoc)
113         * @see org.springframework.batch.core.ItemProcessListener#onProcessError(java.lang.Object, java.lang.Exception)
114         */
115        public void onProcessError(T item, Exception e) {
116        }
117 
118        /* (non-Javadoc)
119         * @see org.springframework.batch.core.SkipListener#onSkipInProcess(java.lang.Object, java.lang.Throwable)
120         */
121        public void onSkipInProcess(T item, Throwable t) {
122        }
123 
124        /* (non-Javadoc)
125         * @see org.springframework.batch.core.SkipListener#onSkipInRead(java.lang.Throwable)
126         */
127        public void onSkipInRead(Throwable t) {
128        }
129 
130        /* (non-Javadoc)
131         * @see org.springframework.batch.core.SkipListener#onSkipInWrite(java.lang.Object, java.lang.Throwable)
132         */
133        public void onSkipInWrite(S item, Throwable t) {
134        }
135 
136}

[all classes][org.springframework.batch.core.listener]
EMMA 2.0.5312 (C) Vladimir Roubtsov