1 7 package org.ejtools.jndi.browser.model; 8 9 import javax.naming.Context ; 10 import javax.naming.LinkRef ; 11 12 13 36 public class JNDILinkRef extends JNDIEntry 37 { 38 39 protected String linkName = ""; 40 41 protected LinkRef ref; 42 43 44 51 public JNDILinkRef(Context context, String jndiName) 52 throws Exception 53 { 54 this.setName(jndiName); 55 56 Object o = context.lookupLink(jndiName); 57 this.setClassName(o.getClass().getName()); 58 59 ref = (LinkRef ) o; 60 this.setLinkName(ref.getLinkName()); 61 } 62 63 64 69 public String getLinkName() 70 { 71 return this.linkName; 72 } 73 74 75 80 protected void setLinkName(String linkName) 81 { 82 this.linkName = linkName; 83 } 84 } 85 | Popular Tags |