1 12 13 package org.ejtools.jmx.browser.model.service; 14 15 16 17 import org.ejtools.util.service.ProfileMetaData; 18 19 20 21 30 31 public class ConnectionMetaData implements ProfileMetaData 32 33 { 34 35 36 37 protected String [] keys = new String []{ 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 60 61 public final static String CLASS_NAME = "classname"; 62 63 64 65 public final static String CONTEXT = "context"; 66 67 68 69 public final static String CREDENTIALS = "credentials"; 70 71 72 73 public final static String FACTORY = "factory"; 74 75 76 77 public final static String PACKAGES = "packages"; 78 79 80 81 public final static String PRINCIPAL = "principal"; 82 83 84 85 public final static String URL = "url"; 86 87 88 89 public final static String SERVICE = "service"; 90 91 92 93 94 95 96 97 public ConnectionMetaData() 98 99 { 100 101 super(); 102 103 } 104 105 106 107 108 109 118 119 public String getFileName() 120 121 { 122 123 return "/jmx.connection.properties"; 124 125 } 126 127 128 129 130 131 142 143 public String getKey(int index) 144 145 { 146 147 return this.keys[index]; 148 149 } 150 151 152 153 154 155 164 165 public String [] getKeys() 166 167 { 168 169 return this.keys; 170 171 } 172 173 174 175 176 177 186 187 public String getPrefix() 188 189 { 190 191 return "connection"; 192 193 } 194 195 } 196 197 | Popular Tags |