KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > netbeans > modules > j2ee > sun > share > serverresources > JavaMsgServiceResource


1 /*
2  * The contents of this file are subject to the terms of the Common Development
3  * and Distribution License (the License). You may not use this file except in
4  * compliance with the License.
5  *
6  * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
7  * or http://www.netbeans.org/cddl.txt.
8  *
9  * When distributing Covered Code, include this CDDL Header Notice in each file
10  * and include the License file at http://www.netbeans.org/cddl.txt.
11  * If applicable, add the following below the CDDL Header, with the fields
12  * enclosed by brackets [] replaced by your own identifying information:
13  * "Portions Copyrighted [year] [name of copyright owner]"
14  *
15  * The Original Software is NetBeans. The Initial Developer of the Original
16  * Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
17  * Microsystems, Inc. All Rights Reserved.
18  */

19 /*
20  * JavaMsgServiceResource.java
21  *
22  * Created on November 13, 2003, 3:01 PM
23  */

24
25 package org.netbeans.modules.j2ee.sun.share.serverresources;
26
27 /**
28  *
29  * @author nityad
30  */

31 public class JavaMsgServiceResource extends BaseResource implements java.io.Serializable JavaDoc{
32
33     private String JavaDoc jndiName;
34     private String JavaDoc resType;
35     private String JavaDoc isEnabled;
36     private String JavaDoc resAdapter = "jmsra"; //NOI18N
37
private String JavaDoc poolName;
38     
39     /** Creates a new instance of JavaMsgServiceResource */
40     public JavaMsgServiceResource() {
41     }
42
43     public String JavaDoc getJndiName() {
44         return jndiName;
45     }
46     public void setJndiName(String JavaDoc value) {
47         String JavaDoc oldValue = jndiName;
48         this.jndiName = value;
49         initPropertyChangeSupport();
50         propertySupport.firePropertyChange ("jndiName", oldValue, jndiName);//NOI18N
51
}
52     
53     public String JavaDoc getResType() {
54         return resType;
55     }
56     public void setResType(String JavaDoc value) {
57         String JavaDoc oldValue = resType;
58         this.resType = value;
59         initPropertyChangeSupport();
60         propertySupport.firePropertyChange ("resType", oldValue, resType);//NOI18N
61
}
62     
63     public String JavaDoc getIsEnabled() {
64         return isEnabled;
65     }
66     public void setIsEnabled(String JavaDoc value) {
67         String JavaDoc oldValue = isEnabled;
68         this.isEnabled = value;
69         initPropertyChangeSupport();
70         propertySupport.firePropertyChange ("isEnabled", oldValue, isEnabled);//NOI18N
71
}
72
73     public String JavaDoc getResAdapter() {
74         return resAdapter;
75     }
76
77     public void setResAdapter(String JavaDoc value) {
78         String JavaDoc oldValue = resAdapter;
79         this.resAdapter = value;
80         initPropertyChangeSupport();
81         propertySupport.firePropertyChange ("resAdapter", oldValue, isEnabled);//NOI18N
82
}
83
84     public String JavaDoc getPoolName() {
85         return poolName;
86     }
87
88     public void setPoolName(String JavaDoc value) {
89         String JavaDoc oldValue = poolName;
90         this.poolName = value;
91         initPropertyChangeSupport();
92         propertySupport.firePropertyChange ("poolName", oldValue, poolName);//NOI18N
93
}
94     
95 }
96
Popular Tags