1 22 package org.objectweb.petals.jbi.registry; 23 24 import java.io.Serializable ; 25 26 import javax.xml.namespace.QName ; 27 28 import org.objectweb.petals.jbi.management.service.EndpointService; 29 30 38 public class LinkedEndpoint extends AbstractEndpoint implements Serializable { 39 40 private static final String LINK = "linked-endpoint"; 41 42 45 private static final long serialVersionUID = 1L; 46 47 50 protected QName [] interfaces; 51 52 55 protected String toEndpointName; 56 57 60 protected QName toServiceName; 61 62 70 public LinkedEndpoint(QName interfaceName, QName toServiceName, 71 String toEndpointName, EndpointService endpointService) { 72 super(null, null, LINK, LINK, EndpointType.LINKED, endpointService); 73 this.interfaces = new QName [] {interfaceName}; 74 this.toServiceName = toServiceName; 75 this.toEndpointName = toEndpointName; 76 } 77 78 87 public LinkedEndpoint(QName serviceName, String endpointName, 88 QName toServiceName, String toEndpointName, 89 EndpointService endpointService) { 90 super(serviceName, endpointName, LINK, LINK, EndpointType.LINKED, 91 endpointService); 92 this.toServiceName = toServiceName; 93 this.toEndpointName = toEndpointName; 94 } 95 96 public QName [] getInterfaces() { 97 return interfaces; 98 } 99 100 public String getToEndpointName() { 101 return toEndpointName; 102 } 103 104 public QName getToServiceName() { 105 return toServiceName; 106 } 107 108 public void setToEndpointName(String toEndpointName) { 109 this.toEndpointName = toEndpointName; 110 } 111 112 public void setToServiceName(QName toServiceName) { 113 this.toServiceName = toServiceName; 114 } 115 116 } 117 | Popular Tags |