KickJava   Java API By Example, From Geeks To Geeks.

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


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: ItfSimpleEnvEntryByDescriptor.java 360 2006-04-19 07:51:41Z studzine $
23  * --------------------------------------------------------------------------
24  */

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

33 public interface ItfSimpleEnvEntryByDescriptor {
34
35     /**
36      * This constant is used to verify if the container does not inject a value
37      * when the application assembler or deployer does not specifies a new value to
38      * override the field value declared in the bean class.
39      */

40     String JavaDoc DECLARED_STRING = "Declared";
41
42     /**
43      * This constant has an value to be compared with the injected value.
44      */

45     String JavaDoc INJECTED_STRING = new String JavaDoc("STRING00");
46
47     /**
48      * Checks if a string was correctly injected. The
49      * deployment descriptor doesn't have a default value, so the value defined
50      * in the variable declaration must not be overridden.
51      */

52     void checkNotOverride00();
53
54     /**
55      * Checks if a string was correctly injected in the environment using the deployment descriptor without annotations.
56      */

57     void checkStringInjection00();
58
59 }
60
Popular Tags