KickJava   Java API By Example, From Geeks To Geeks.

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


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: ItfSimpleEnvEntry.java 333 2006-04-14 13:31:55Z studzine $
23  * --------------------------------------------------------------------------
24  */

25 package org.objectweb.easybeans.tests.common.ejbs.base;
26
27 /**
28  * This class is used to test the annotations and environment access to simple
29  * environment entries using annotations, deployment descriptors or combination
30  * of both.
31  * @author Eduardo Studzinski Estima de Castro
32  * @author Gisele Pinheiro Souza
33  */

34 public interface ItfSimpleEnvEntry {
35
36     /**
37      * This constant has an value to be compared with the injected value or
38      * obtained value from the environment.
39      */

40     String JavaDoc ENTRY_STRING = new String JavaDoc("STRING00");
41
42     /**
43      * This constant has an value to be compared with the injected value or
44      * obtained value from the environment.
45      */

46     String JavaDoc ENTRY_STRING_1 = new String JavaDoc("STRING01");
47
48     /**
49      * This constant has an value to be compared with the injected value or
50      * obtained value from the environment.
51      */

52     Character JavaDoc ENTRY_CHARACTER = new Character JavaDoc('A');
53
54     /**
55      * This constant has an value to be compared with the injected value or
56      * obtained value from the environment.
57      */

58     Character JavaDoc ENTRY_CHARACTER_1 = new Character JavaDoc('B');
59     /**
60      * This constant has an value to be compared with the injected value or
61      * obtained value from the environment.
62      */

63     Integer JavaDoc ENTRY_INTEGER = new Integer JavaDoc(12);
64
65     /**
66      * This constant has an value to be compared with the injected value or
67      * obtained value from the environment.
68      */

69     Boolean JavaDoc ENTRY_BOOLEAN = new Boolean JavaDoc(true);
70
71     /**
72      * This constant has an value to be compared with the injected value or
73      * obtained value from the environment.
74      */

75     Double JavaDoc ENTRY_DOUBLE = new Double JavaDoc(100);
76
77     /**
78      * This constant has an value to be compared with the injected value or
79      * obtained value from the environment.
80      */

81     Byte JavaDoc ENTRY_BYTE = new Byte JavaDoc("2");
82
83     /**
84      * This constant has an value to be compared with the injected value or
85      * obtained value from the environment.
86      */

87     Byte JavaDoc ENTRY_BYTE_1 = new Byte JavaDoc("3");
88
89     /**
90      * This constant has an value to be compared with the injected value or
91      * obtained value from the environment.
92      */

93     Short JavaDoc ENTRY_SHORT = new Short JavaDoc("200");
94
95     /**
96      * This constant has an value to be compared with the injected value or
97      * obtained value from the environment.
98      */

99     Short JavaDoc ENTRY_SHORT_1 = new Short JavaDoc("201");
100
101     /**
102      * This constant has an value to be compared with the injected value or
103      * obtained value from the environment.
104      */

105     Long JavaDoc ENTRY_LONG = new Long JavaDoc(300);
106
107     /**
108      * This constant has an value to be compared with the injected value or
109      * obtained value from the environment.
110      */

111     Float JavaDoc ENTRY_FLOAT = new Float JavaDoc(400);
112
113     /**
114      * Checks if a String was value correctly injected or if it can be accessed from the
115      * environment using the session context and the JNDI API. If the comparison
116      * between the constant value and the obtained value fails an
117      * IllegalStateException is thrown.
118      */

119     void checkString00();
120
121     /**
122      * Checks if a character value was correctly injected or if it can be accessed from
123      * the environment using the session context and the JNDI API. If the
124      * comparison between the constant value and the obtained value fails an
125      * IllegalStateException is thrown.
126      */

127     void checkCharacter00();
128
129     /**
130      * Checks if an integer value was correctly injected or if it can be accessed from the
131      * environment using the session context and the JNDI API. If the comparison
132      * between the constant value and the obtained value fails an
133      * IllegalStateException is thrown.
134      */

135     void checkInteger00();
136
137     /**
138      * Checks if a boolean value was correctly injected or if it can be accessed from the
139      * environment using the session context and the JNDI API. If the comparison
140      * between the constant value and the obtained value fails an
141      * IllegalStateException is thrown.
142      */

143     void checkBoolean00();
144
145     /**
146      * Checks if a double value was correctly injected or if it can be accessed from the
147      * environment using the session context and the JNDI API. If the comparison
148      * between the constant value and the obtained value fails an
149      * IllegalStateException is thrown.
150      */

151     void checkDouble00();
152
153     /**
154      * Checks if a byte value was correctly injected or if it can be accessed from the
155      * environment using the session context and the JNDI API. If the comparison
156      * between the constant value and the obtained value fails an
157      * IllegalStateException is thrown.
158      */

159     void checkByte00();
160
161     /**
162      * Checks if a short value was correctly injected or if it can be accessed from the
163      * environment using the session context and the JNDI API. If the comparison
164      * between the constant value and the obtained value fails an
165      * IllegalStateException is thrown.
166      */

167     void checkShort00();
168
169     /**
170      * Checks if a long value was correctly injected or if it can be accessed from the
171      * environment using the session context and the JNDI API. If the comparison
172      * between the constant value and the obtained value fails an
173      * IllegalStateException is thrown.
174      */

175     void checkLong00();
176
177     /**
178      * Checks if a float value was correctly injected or if it can be accessed from the
179      * environment using the session context and the JNDI API. If the comparison
180      * between the constant value and the obtained value fails an
181      * IllegalStateException is thrown.
182      */

183     void checkFloat00();
184 }
185
Popular Tags