/** * @param portComponenet the port component to which I refer */ public void setPortComponentLink(WebServiceEndpoint newPort) { if( newPort != null ) { // Keep port component link name in synch with port component // object. BundleDescriptor bundleDescriptor = getBundleDescriptor(); BundleDescriptor targetBundleDescriptor = newPort.getBundleDescriptor(); String linkName = newPort.getEndpointName(); if( bundleDescriptor != targetBundleDescriptor ) { Application app = bundleDescriptor.getApplication(); String relativeUri = app.getRelativeUri(bundleDescriptor, targetBundleDescriptor); linkName = relativeUri + "#" + linkName; } portComponentLinkName = linkName; } portComponentLink = newPort; }
/** * @param portComponenet the port component to which I refer */ public void setPortComponentLink(WebServiceEndpoint newPort) { if( newPort != null ) { // Keep port component link name in synch with port component // object. BundleDescriptor bundleDescriptor = getBundleDescriptor(); BundleDescriptor targetBundleDescriptor = newPort.getBundleDescriptor(); String linkName = newPort.getEndpointName(); if( bundleDescriptor != targetBundleDescriptor ) { Application app = bundleDescriptor.getApplication(); String relativeUri = app.getRelativeUri(bundleDescriptor, targetBundleDescriptor); linkName = relativeUri + "#" + linkName; } portComponentLinkName = linkName; } portComponentLink = newPort; }
/** * @param messageDestiation the message destination to which I refer. */ public void setMessageDestination(MessageDestinationDescriptor newMsgDest) { if( messageDestination != null ) { messageDestination.removeReferencer(this); } if( newMsgDest != null ) { newMsgDest.addReferencer(this); // Keep message destination link name in synch with message // destination object. BundleDescriptor bundleDescriptor = getBundleDescriptor(); BundleDescriptor targetBundleDescriptor = newMsgDest.getBundleDescriptor(); String linkName = newMsgDest.getName(); if( bundleDescriptor != targetBundleDescriptor ) { Application app = bundleDescriptor.getApplication(); String relativeUri = app.getRelativeUri(bundleDescriptor, targetBundleDescriptor); linkName = relativeUri + "#" + linkName; } messageDestinationLinkName = linkName; } messageDestination = newMsgDest; }
/** * @param messageDestiation the message destination to which I refer. */ public void setMessageDestination(MessageDestinationDescriptor newMsgDest) { if( messageDestination != null ) { messageDestination.removeReferencer(this); } if( newMsgDest != null ) { newMsgDest.addReferencer(this); // Keep message destination link name in synch with message // destination object. BundleDescriptor bundleDescriptor = getBundleDescriptor(); BundleDescriptor targetBundleDescriptor = newMsgDest.getBundleDescriptor(); String linkName = newMsgDest.getName(); if( bundleDescriptor != targetBundleDescriptor ) { Application app = bundleDescriptor.getApplication(); String relativeUri = app.getRelativeUri(bundleDescriptor, targetBundleDescriptor); linkName = relativeUri + "#" + linkName; } messageDestinationLinkName = linkName; } messageDestination = newMsgDest; }
relativeUri = getApplication().getRelativeUri(sourceModule, targetModule);
relativeUri = getApplication().getRelativeUri(sourceModule, targetModule);