KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > ersatz > resourceadapter > ConnectionSpecImpl


1 /*
2  * Created on December 12, 2003
3  *
4  * ConnectionFactoryImpl.java is used to test the J2EE Connector
5  * as implemented by JOnAS.
6  *
7  */

8 package ersatz.resourceadapter;
9
10 import javax.resource.cci.ConnectionSpec; // j2ee 1.5
11
/**
12  * @author Bob Kruse
13  *
14  * used to test the J2EE Connector as implemented by JOnAS.
15  *
16  */

17 public class ConnectionSpecImpl
18     implements ConnectionSpec
19
20 {
21     private String userName = "";
22     private String passWord = "";
23     String cName = "ConnectionSpecImpl";
24     
25     public ConnectionSpecImpl() {
26     }
27     public void setUserName(String u) {
28         userName=u;
29         Utility.log(cName+".setUserName="+u);
30     }
31     public void setPassword(String p) {
32         passWord=p;
33         Utility.log(cName+".setPassword="+p);
34     }
35     public String getUserName() {
36         Utility.log(cName+".getUserName="+userName);
37         return userName;
38     }
39     public String getPassword() {
40         Utility.log(cName+".getPassword="+passWord);
41         return passWord;
42     }
43 }
44
Popular Tags