1 7 package org.ejtools.jndi.browser.model.service; 8 9 import org.ejtools.util.service.ProfileMetaData; 10 11 16 public class ConnectionMetaData implements ProfileMetaData 17 { 18 19 protected String [] keys = new String []{ 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 CONTEXT = "context"; 29 30 public final static String CREDENTIALS = "credentials"; 31 32 public final static String FACTORY = "factory"; 33 34 public final static String PACKAGES = "packages"; 35 36 public final static String PRINCIPAL = "principal"; 37 38 public final static String URL = "url"; 39 40 41 42 public ConnectionMetaData() 43 { 44 super(); 45 } 46 47 48 53 public String getFileName() 54 { 55 return "/jndi.connection.properties"; 56 } 57 58 59 65 public String getKey(int index) 66 { 67 return this.keys[index]; 68 } 69 70 71 76 public String [] getKeys() 77 { 78 return this.keys; 79 } 80 81 82 87 public String getPrefix() 88 { 89 return "connection"; 90 } 91 } 92 | Popular Tags |