int hashIndex = linkName.indexOf('#'); BundleDescriptor bundleDescriptor = getBundleDescriptor(); Application app = bundleDescriptor.getApplication(); if (app == null && bundleDescriptor instanceof Application) {
int hashIndex = linkName.indexOf('#'); BundleDescriptor bundleDescriptor = getBundleDescriptor(); Application app = bundleDescriptor.getApplication(); if (app == null && bundleDescriptor instanceof Application) {
/** * @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; }