KickJava   Java API By Example, From Geeks To Geeks.

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


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: ItfMethodInterceptor.java 146 2006-03-09 12:23:49Z studzine $
23  * --------------------------------------------------------------------------
24  */

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

35 public interface ItfMethodInterceptor<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 an element in the par.
44      * @param par list used to append the value
45      * @return list updated
46      */

47     List JavaDoc<T> withoutInterceptor(List JavaDoc<T> par);
48
49     /**
50      * Appends an element in the par. Also,the interceptor appends
51      * an element with its value.
52      * @param par list used to apend the value
53      * @return list updated
54      */

55     List JavaDoc<T> withOneMethodInterceptor(List JavaDoc<T> par);
56
57     /**
58      * Appends an element in the par. Also,each interceptor
59      * appends an element with its value.
60      * @param par list used to apend the value
61      * @return list updated
62      */

63     List JavaDoc<T> withTwoMethodInterceptors(List JavaDoc<T> par);
64
65     /**
66      * Apends an element in the par. Also,each interceptor
67      * appends an element with its value.
68      * @param par list used to apend the value
69      * @return list updated
70      */

71     List JavaDoc<T> withFiveMethodInterceptors(List JavaDoc<T> par);
72
73     /**
74      * Appends an element in the par. Also,each interceptor
75      * appends an element with its value.
76      * @param par list used to append the value
77      * @return list updated
78      */

79     List JavaDoc<T> withFiveMethodInterceptorsInverse(List JavaDoc<T> par);
80
81     /**
82      * Verifies the list status.
83      * @return true if the list is properly configured to use.
84      */

85     boolean checkPostbackInterceptors();
86
87     /**
88      * Appends an element in the par. Also,each interceptor
89      * appends an element with its value.
90      * @param par list used to append the value
91      * @return list updated
92      */

93     List JavaDoc<T> withPrivateProtectedPublicInterceptors(List JavaDoc<T> par);
94
95     /**
96      * Appends an element in the par. Also, each interceptor
97      * appends an element with its value.
98      * @param par list used to append the value
99      * @return list updated
100      */

101     List JavaDoc<T> withPrivateInterceptors(List JavaDoc<T> par);
102
103     /**
104      * Appends an element in the par. Also,each interceptor
105      * appends an element with its value.
106      * @param par list used to append the value
107      * @return list updated
108      */

109     List JavaDoc<T> withProtectedInterceptors(List JavaDoc<T> par);
110
111     /**
112      * Appends an element in the par. Also,each interceptor
113      * appends an element with its value.
114      * @param par list used to append the value
115      * @return list updated
116      */

117     List JavaDoc<T> withPackageInterceptors(final List JavaDoc<Integer JavaDoc> par);
118 }
119
Popular Tags