1 22 package org.jboss.metadata; 23 24 import org.w3c.dom.Element ; 25 26 import org.jboss.deployment.DeploymentException; 27 28 34 public class MessageDestinationMetaData extends MetaData 35 { 36 38 40 41 private String name; 42 43 44 private String jndiName; 45 46 48 50 public MessageDestinationMetaData() 51 { 52 } 53 54 56 public String getName() 57 { 58 return name; 59 } 60 public void setName(String name) 61 { 62 this.name = name; 63 } 64 65 public void setJNDIName(String name) 66 { 67 this.jndiName = name; 68 } 69 73 public String getJNDIName() 74 { 75 return jndiName; 76 } 77 78 public String getMappedName() 79 { 80 return getJNDIName(); 81 } 82 83 public void importEjbJarXml(Element element) throws DeploymentException 84 { 85 name = getElementContent(getUniqueChild(element, "message-destination-name")); 86 } 87 88 public void importJbossXml(Element element) throws DeploymentException 89 { 90 jndiName = getElementContent(getUniqueChild(element, "jndi-name")); 91 } 92 93 95 97 99 } 101 | Popular Tags |