1 26 27 package org.objectweb.jonas_lib.deployment.api; 28 29 import org.objectweb.jonas_lib.deployment.xml.JonasMessageDestinationRef; 30 import org.objectweb.jonas_lib.deployment.xml.MessageDestinationRef; 31 32 36 public class MessageDestinationRefDesc { 37 38 41 private String messageDestinationRefName = null; 42 43 46 private String messageDestinationType = null; 47 48 51 private String messageDestinationUsage = null; 52 53 56 private String messageDestinationLink = null; 57 58 61 private String jndiName = null; 62 63 64 71 public MessageDestinationRefDesc(MessageDestinationRef messageDestinationRef, 72 JonasMessageDestinationRef jonasMessageDestinationRef) 73 throws DeploymentDescException { 74 messageDestinationRefName = messageDestinationRef.getMessageDestinationRefName(); 75 messageDestinationType = messageDestinationRef.getMessageDestinationType(); 76 messageDestinationUsage = messageDestinationRef.getMessageDestinationUsage(); 77 messageDestinationLink = messageDestinationRef.getMessageDestinationLink(); 78 jndiName = null; 79 if (jonasMessageDestinationRef != null) { 80 jndiName = jonasMessageDestinationRef.getJndiName(); 81 } 82 } 83 84 88 public String getMessageDestinationRefName() { 89 return messageDestinationRefName; 90 } 91 92 96 public String getMessageDestinationType() { 97 return messageDestinationType; 98 } 99 100 104 public String getMessageDestinationUsage() { 105 return messageDestinationUsage; 106 } 107 108 112 public String getMessageDestinationLink() { 113 return messageDestinationLink; 114 } 115 116 117 121 public String getJndiName() { 122 return jndiName; 123 } 124 125 129 public void setJndiName(String jndiName) { 130 this.jndiName = jndiName; 131 } 132 133 134 138 public String toString() { 139 StringBuffer ret = new StringBuffer (); 140 ret.append("\ngetMessageDestinationRefName()=" + getMessageDestinationRefName()); 141 ret.append("\ngetMessageDestinationType()=" + getMessageDestinationType()); 142 ret.append("\ngetMessageDestinationUsage()=" + getMessageDestinationUsage()); 143 ret.append("\ngetMessageDestinationLink()=" + getMessageDestinationLink()); 144 ret.append("\ngetJndiName()=" + getJndiName()); 145 return ret.toString(); 146 } 147 148 } 149 | Popular Tags |