KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > easybeans > tests > common > ejbs > stateful > containermanaged > interceptorxml > ItfInterceptorXML


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: ItfInterceptorXML.java 928 2006-07-25 13:11:32Z studzine $
23  * --------------------------------------------------------------------------
24  */

25
26 package org.objectweb.easybeans.tests.common.ejbs.stateful.containermanaged.interceptorxml;
27
28 import java.util.List JavaDoc;
29
30 import javax.interceptor.InvocationContext;
31
32 /**
33  * Used to verify if the listeners can be defined by deployment descriptor.
34  * @author Gisele Pinheiro Souza
35  * @author Eduardo Studzinski Estima de Castro
36  *
37  */

38 public interface ItfInterceptorXML {
39
40     /**
41      * Appends a value in the end of the list.
42      * @param par the lists that the value will be appended.
43      * @return the list with the value added.
44      */

45     List JavaDoc<Integer JavaDoc> insertOrder1(final List JavaDoc<Integer JavaDoc> par);
46
47     /**
48      * Appends a value in the end of the list.
49      * @param par the lists that the value will be appended.
50      * @return the list with the value added.
51      */

52     List JavaDoc<Integer JavaDoc> insertOrder2(final List JavaDoc<Integer JavaDoc> par);
53
54     /**
55      * Appends a value in the end of the list.
56      * @param par the lists that the value will be appended.
57      * @param dummy a parmeter used to differ two methods with the same name.
58      * @return the list with the value added.
59      */

60     List JavaDoc<Integer JavaDoc> insertOrder2(final List JavaDoc<Integer JavaDoc> par, final int dummy);
61
62     /**
63      * Appends a value in the end of the list.
64      * @param par the lists that the value will be appended.
65      * @return the list with the value added.
66      */

67     List JavaDoc<Integer JavaDoc> insertOrder3(final List JavaDoc<Integer JavaDoc> par);
68
69     /**
70      * Sets a variable as true.
71      */

72     void postConstruct();
73
74     /**
75      * Registers in the database that the method was called.
76      */

77     void preDestroy();
78
79     /**
80      * Used to verify if a prePassivate callback method can be defined by the
81      * deployment descriptor.
82      */

83     void prePassivate();
84
85     /**
86      * Used to verify if a postActivate callback method can be defined by the
87      * deployment descriptor.
88      */

89     void postActivate();
90
91     /**
92      * Says if the postContruct method was called.
93      * @return true if the postConstruct was called, false otherwise.
94      */

95     boolean calledPostConstruct();
96
97     /**
98      * Appends a value in the end of the list.
99      * @param invocationContext the incocation context.
100      * @return the list with the value added.
101      * @throws Exception if an error occurs during the insertion.
102      */

103     Object JavaDoc aroundInvoke(final InvocationContext invocationContext) throws Exception JavaDoc;
104
105     /**
106      * Used to remove the bean and to verifyif the preDestroy was called.
107      */

108     public void remove();
109 }
110
Popular Tags