1 25 26 package org.objectweb.jonas_lib.deployment.api; 27 28 import org.objectweb.jonas_lib.deployment.xml.EjbRef; 29 import org.objectweb.jonas_lib.deployment.xml.JonasEjbRef; 30 31 36 public class EjbRefDesc { 37 38 41 private String ejbRefName = null; 42 43 46 private String ejbRefType = null; 47 48 51 private String home = null; 52 53 56 private String remote = null; 57 58 61 private String ejbLink = null; 62 63 66 private String jndiName = null; 67 68 69 74 public EjbRefDesc(EjbRef ejbRef, JonasEjbRef jonasEjbRef) { 75 ejbRefName = ejbRef.getEjbRefName(); 76 ejbRefType = ejbRef.getEjbRefType(); 77 ejbLink = null; 78 if (ejbRef.getEjbLink() != null) { 79 ejbLink = ejbRef.getEjbLink(); 80 } 81 jndiName = null; 82 if (jonasEjbRef != null) { 83 jndiName = jonasEjbRef.getJndiName(); 84 } 85 this.home = ejbRef.getHome(); 86 this.remote = ejbRef.getRemote(); 87 88 } 89 90 94 public String getEjbRefName() { 95 return ejbRefName; 96 } 97 98 102 public String getEjbRefType() { 103 return ejbRefType; 104 } 105 106 110 public String getEjbLink() { 111 return ejbLink; 112 } 113 114 115 119 public String getJndiName() { 120 return jndiName; 121 } 122 123 127 public void setJndiName(String jndiName) { 128 this.jndiName = jndiName; 129 } 130 131 132 136 public String toString() { 137 StringBuffer ret = new StringBuffer (); 138 ret.append("\ngetEjbRefName()=" + getEjbRefName()); 139 ret.append("\ngetEjbRefType()=" + getEjbRefType()); 140 ret.append("\ngetEjbLink()=" + getEjbLink()); 141 ret.append("\ngetJndiName()=" + getJndiName()); 142 return ret.toString(); 143 } 144 145 148 public String getHome() { 149 return home; 150 } 151 154 public String getRemote() { 155 return remote; 156 } 157 } 158 | Popular Tags |