KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > easybeans > tests > common > ejbs > base > ItfClassInterceptor


1 /**
2  * EasyBeans
3  * Copyright (C) 2006 Bull S.A.S.
4  * Contact: easybeans@objectweb.org
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * version 2.1 of the License, or any later version.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with this library; if not, write to the Free Software
18  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
19  * USA
20  *
21  * --------------------------------------------------------------------------
22  * $Id: ItfClassInterceptor.java 811 2006-07-04 08:42:18Z studzine $
23  * --------------------------------------------------------------------------
24  */

25 package org.objectweb.easybeans.tests.common.ejbs.base;
26
27 import java.util.List JavaDoc;
28
29 /**
30  * Is used to test if the container call the class interceptors in order.
31  * @author Gisele Pinheiro Souza
32  * @author Eduardo Studzinski E. de Castro
33  * @param <T> list type
34  */

35 public interface ItfClassInterceptor<T> {
36
37     /**
38      * The number that each method will add in the array.
39      */

40     Integer JavaDoc ORDER = new Integer JavaDoc(0);
41
42     /**
43      * Appends a integer in the par with the value 0.
44      * Has only the class interceptors.
45      * @param par list used to apend the value
46      * @return list updated
47      */

48     List JavaDoc<T> withoutMethodInterceptor(List JavaDoc<T> par);
49
50     /**
51      * Appends a integer in the par with the value 0.
52      * Has only the class interceptors.
53      * @param par list used to apend the value
54      * @return list updated
55      */

56     List JavaDoc<T> withExcludeDefaultInterceptor(List JavaDoc<T> par);
57
58     /**
59      * Appends a integer in the par with the value 0.
60      * Has only the class interceptors and has the annotation ExcludeClassInterceptor
61      * @param par list used to apend the value
62      * @return list updated
63      */

64     List JavaDoc<T> withExcludeClassInterceptor(List JavaDoc<T> par);
65
66     /**
67      * Appends a integer in the par with the value 0.
68      * Has the class interceptors, one method interceptor and has the
69      * annotation ExcludeClassInterceptor
70      * @param par list used to apend the value
71      * @return list updated
72      */

73     List JavaDoc<T> excludeClassAndOneMtd(List JavaDoc<T> par);
74
75     /**
76      * Appends a integer in the par with the value 0.
77      * Has the class interceptors, four method interceptor and has the
78      * annotation ExcludeClassInterceptor
79      * @param par list used to apend the value
80      * @return list updated
81      */

82     List JavaDoc<T> excludeClassDefAndFourMtd(List JavaDoc<T> par);
83
84     /**
85      * Appends a integer in the par with the value 0.
86      * Has the class interceptors and one method interceptor.
87      * @param par list used to append the value
88      * @return list updated
89      */

90     List JavaDoc<T> withOneMethodInterceptor(List JavaDoc<T> par);
91
92     /**
93      * Appends a integer in the par with the value 0.
94      * Has the class interceptors and three method interceptor.
95      * @param par list used to append the value
96      * @return list updated
97      */

98     List JavaDoc<T> withThreeMethodInterceptor(List JavaDoc<T> par);
99
100 }
101
Popular Tags