1 7 package org.ejtools.management.browser.model.service; 8 9 import org.ejtools.util.service.ProfileMetaData; 10 11 15 public class ConnectionMetaData implements ProfileMetaData 16 { 17 18 protected String [] keys = new String []{ 19 ConnectionMetaData.CLASS_NAME, 20 ConnectionMetaData.FACTORY, 21 ConnectionMetaData.PACKAGES, 22 ConnectionMetaData.URL, 23 ConnectionMetaData.CONTEXT, 24 ConnectionMetaData.PRINCIPAL, 25 ConnectionMetaData.CREDENTIALS 26 }; 27 28 public final static String CLASS_NAME = "classname"; 29 30 public final static String CONTEXT = "context"; 31 32 public final static String CREDENTIALS = "credentials"; 33 34 public final static String FACTORY = "factory"; 35 36 public final static String PACKAGES = "packages"; 37 38 public final static String PRINCIPAL = "principal"; 39 40 public final static String URL = "url"; 41 42 43 44 public ConnectionMetaData() 45 { 46 super(); 47 } 48 49 50 55 public String getFileName() 56 { 57 return "/management.connection.properties"; 58 } 59 60 61 67 public String getKey(int index) 68 { 69 return this.keys[index]; 70 } 71 72 73 78 public String [] getKeys() 79 { 80 return this.keys; 81 } 82 83 84 89 public String getPrefix() 90 { 91 return "connection"; 92 } 93 } 94 | Popular Tags |