1 19 20 package org.netbeans.modules.j2ee.ejbcore.ui.logicalview.entres; 21 22 import org.netbeans.api.project.Project; 23 24 29 public class JMSDestination { 30 31 private final String destination; 32 private final Project project; 33 private final String type; 34 35 public JMSDestination(String destination, Project project, String type) { 36 this.destination = destination; 37 this.project = project; 38 this.type = type; 39 } 40 41 public String toString() { 42 return destination; 43 } 44 45 public String getDestination() { 46 return destination; 47 } 48 49 public String getType() { 50 return type; 51 } 52 53 public Project getProject() { 54 return project; 55 } 56 57 public String getConnectionFactoryName(){ 58 return "jms/" + getDestination() + "Factory"; } 60 61 public String getDestinationName(){ 62 return "jms/" + getDestination(); } 64 65 294 } 295 296 | Popular Tags |