KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > ejtools > jmx > browser > model > service > ConnectionMetaData


1 /*
2
3  * EJTools, the Enterprise Java Tools
4
5  *
6
7  * Distributable under LGPL license.
8
9  * See terms of license at www.gnu.org.
10
11  */

12
13 package org.ejtools.jmx.browser.model.service;
14
15
16
17 import org.ejtools.util.service.ProfileMetaData;
18
19
20
21 /**
22
23  * @author letiembl
24
25  * @created 14 novembre 2002
26
27  * @version $Revision: 1.6 $
28
29  */

30
31 public class ConnectionMetaData implements ProfileMetaData
32
33 {
34
35    /** Description of the Field */
36
37    protected String JavaDoc[] keys = new String JavaDoc[]{
38
39          ConnectionMetaData.CLASS_NAME,
40
41          ConnectionMetaData.FACTORY,
42
43          ConnectionMetaData.PACKAGES,
44
45          ConnectionMetaData.URL,
46
47 ConnectionMetaData.SERVICE,
48
49          ConnectionMetaData.CONTEXT,
50
51          ConnectionMetaData.PRINCIPAL,
52
53          ConnectionMetaData.CREDENTIALS
54
55          };
56
57          
58
59    /** Description of the Field */
60
61    public final static String JavaDoc CLASS_NAME = "classname";
62
63    /** Description of the Field */
64
65    public final static String JavaDoc CONTEXT = "context";
66
67    /** Description of the Field */
68
69    public final static String JavaDoc CREDENTIALS = "credentials";
70
71    /** Description of the Field */
72
73    public final static String JavaDoc FACTORY = "factory";
74
75    /** Description of the Field */
76
77    public final static String JavaDoc PACKAGES = "packages";
78
79    /** Description of the Field */
80
81    public final static String JavaDoc PRINCIPAL = "principal";
82
83    /** Description of the Field */
84
85    public final static String JavaDoc URL = "url";
86
87    /** Description of the Field */
88
89    public final static String JavaDoc SERVICE = "service";
90
91
92
93
94
95    /** Constructor for ConnectionMetaData. */
96
97    public ConnectionMetaData()
98
99    {
100
101       super();
102
103    }
104
105
106
107
108
109    /**
110
111     * Gets the fileName attribute of the ConnectionMetaData object
112
113     *
114
115     * @return The fileName value
116
117     */

118
119    public String JavaDoc getFileName()
120
121    {
122
123       return "/jmx.connection.properties";
124
125    }
126
127
128
129
130
131    /**
132
133     * Gets the key attribute of the ConnectionMetaData object
134
135     *
136
137     * @param index Description of the Parameter
138
139     * @return The key value
140
141     */

142
143    public String JavaDoc getKey(int index)
144
145    {
146
147       return this.keys[index];
148
149    }
150
151
152
153
154
155    /**
156
157     * Gets the keys attribute of the ConnectionMetaData object
158
159     *
160
161     * @return The keys value
162
163     */

164
165    public String JavaDoc[] getKeys()
166
167    {
168
169       return this.keys;
170
171    }
172
173
174
175
176
177    /**
178
179     * Gets the prefix attribute of the ConnectionMetaData object
180
181     *
182
183     * @return The prefix value
184
185     */

186
187    public String JavaDoc getPrefix()
188
189    {
190
191       return "connection";
192
193    }
194
195 }
196
197
Popular Tags