EMMA Coverage Report (generated Tue May 06 07:29:23 PDT 2008)
[all classes][org.springframework.batch.core.listener]

COVERAGE SUMMARY FOR SOURCE FILE [ItemListenerSupport.java]

nameclass, %method, %block, %line, %
ItemListenerSupport.java100% (1/1)57%  (4/7)67%  (6/9)57%  (4/7)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class ItemListenerSupport100% (1/1)57%  (4/7)67%  (6/9)57%  (4/7)
afterWrite (Object): void 0%   (0/1)0%   (0/1)0%   (0/1)
onReadError (Exception): void 0%   (0/1)0%   (0/1)0%   (0/1)
onWriteError (Exception, Object): void 0%   (0/1)0%   (0/1)0%   (0/1)
ItemListenerSupport (): void 100% (1/1)100% (3/3)100% (1/1)
afterRead (Object): void 100% (1/1)100% (1/1)100% (1/1)
beforeRead (): void 100% (1/1)100% (1/1)100% (1/1)
beforeWrite (Object): 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 org.springframework.batch.core.ItemReadListener;
19import org.springframework.batch.core.ItemWriteListener;
20 
21/**
22 * Basic no-op implementation of both the {@link ItemWriteListener} and
23 * {@link ItemReadListener} interfaces.  Both are implemented, since it is 
24 * very common that both may need to be implemented at once.
25 * 
26 * @author Lucas Ward
27 *
28 */
29public class ItemListenerSupport implements ItemWriteListener, ItemReadListener {
30 
31        /* (non-Javadoc)
32         * @see org.springframework.batch.core.domain.ItemWriteListener#afterWrite()
33         */
34        public void afterWrite(Object item) {
35        }
36 
37        /* (non-Javadoc)
38         * @see org.springframework.batch.core.domain.ItemWriteListener#beforeWrite(java.lang.Object)
39         */
40        public void beforeWrite(Object item) {
41        }
42 
43        /* (non-Javadoc)
44         * @see org.springframework.batch.core.domain.ItemWriteListener#onWriteError(java.lang.Exception, java.lang.Object)
45         */
46        public void onWriteError(Exception ex, Object item) {
47        }
48 
49        /* (non-Javadoc)
50         * @see org.springframework.batch.core.domain.ItemReadListener#afterRead(java.lang.Object)
51         */
52        public void afterRead(Object item) {
53        }
54 
55        /* (non-Javadoc)
56         * @see org.springframework.batch.core.domain.ItemReadListener#beforeRead()
57         */
58        public void beforeRead() {
59        }
60 
61        /* (non-Javadoc)
62         * @see org.springframework.batch.core.domain.ItemReadListener#onReadError(java.lang.Exception)
63         */
64        public void onReadError(Exception ex) {
65        }
66 
67}

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