01: /*
02: * Created on December 12, 2003
03: *
04: * ConnectionFactoryImpl.java is used to test the J2EE Connector
05: * as implemented by JOnAS.
06: *
07: */
08: package ersatz.resourceadapter;
09:
10: import javax.resource.cci.ConnectionSpec; // j2ee 1.5
11:
12: /**
13: * @author Bob Kruse
14: *
15: * used to test the J2EE Connector as implemented by JOnAS.
16: *
17: */
18: public class ConnectionSpecImpl implements ConnectionSpec
19:
20: {
21: private String userName = "";
22: private String passWord = "";
23: String cName = "ConnectionSpecImpl";
24:
25: public ConnectionSpecImpl() {
26: }
27:
28: public void setUserName(String u) {
29: userName = u;
30: Utility.log(cName + ".setUserName=" + u);
31: }
32:
33: public void setPassword(String p) {
34: passWord = p;
35: Utility.log(cName + ".setPassword=" + p);
36: }
37:
38: public String getUserName() {
39: Utility.log(cName + ".getUserName=" + userName);
40: return userName;
41: }
42:
43: public String getPassword() {
44: Utility.log(cName + ".getPassword=" + passWord);
45: return passWord;
46: }
47: }
|