1 17 package org.apache.servicemix.jbi.servicedesc; 18 19 import org.apache.servicemix.jbi.framework.ComponentNameSpace; 20 import org.w3c.dom.DocumentFragment ; 21 22 import javax.jbi.servicedesc.ServiceEndpoint; 23 import javax.xml.namespace.QName ; 24 25 28 public class DynamicEndpoint extends AbstractServiceEndpoint { 29 30 33 private static final long serialVersionUID = -9084647509619730734L; 34 35 private final QName serviceName; 36 private final String endpointName; 37 private final transient DocumentFragment epr; 38 39 public DynamicEndpoint(ComponentNameSpace componentName, 40 ServiceEndpoint endpoint, 41 DocumentFragment epr) { 42 super(componentName); 43 this.serviceName = endpoint.getServiceName(); 44 this.endpointName = endpoint.getEndpointName(); 45 this.epr = epr; 46 } 47 48 51 public DocumentFragment getAsReference(QName operationName) { 52 return epr; 53 } 54 55 58 public String getEndpointName() { 59 return endpointName; 60 } 61 62 65 public QName [] getInterfaces() { 66 return null; 67 } 68 69 72 public QName getServiceName() { 73 return serviceName; 74 } 75 76 } 77 | Popular Tags |