/** * Constructs a reference in the extrernal state. */ public MessageDestinationReferenceDescriptor() { referencer = new MessageDestinationReferencerImpl(this); }
/** * @return the message destination to which I refer. Can be NULL. */ public MessageDestinationDescriptor getMessageDestination() { return referencer.getMessageDestination(); }
/** * @return the name of the message destination to which I refer */ public String getMessageDestinationLinkName() { return referencer.getMessageDestinationLinkName(); }
/** * Sets the name of the message destination to which I refer. */ public void setMessageDestinationLinkName(String linkName) { referencer.setMessageDestinationLinkName(linkName); }
public MessageDestinationDescriptor resolveLinkName() { return referencer.resolveLinkName(); }
int hashIndex = linkName.indexOf('#'); BundleDescriptor bundleDescriptor = getBundleDescriptor(); Application app = bundleDescriptor.getApplication(); if (app == null && bundleDescriptor instanceof Application) { setMessageDestination(msgDest);
/** * @param messageDestiation the message destination to which I refer. */ public void setMessageDestination(MessageDestinationDescriptor newMsgDest) { referencer.setMessageDestination(newMsgDest); }
public boolean isLinkedToMessageDestination() { return referencer.isLinkedToMessageDestination(); }
private BundleDescriptor getBundleDescriptor() { return ownedByMessageDestinationRef() ? ownerMsgDestRef.getReferringBundleDescriptor() : ownerMsgBean.getEjbBundleDescriptor(); }
/** * @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; }
/** * Sets the name of the message destination to which I refer. * NOTE : Does *NOT* attempt to resolve link name. Use * alternate version of setMessageDestinationLinkName or resolveLink * if link resolution is required. */ public void setMessageDestinationLinkName(String linkName) { setMessageDestinationLinkName(linkName, false); }
public MessageDestinationDescriptor resolveLinkName() { return msgDestReferencer.resolveLinkName(); }
int hashIndex = linkName.indexOf('#'); BundleDescriptor bundleDescriptor = getBundleDescriptor(); Application app = bundleDescriptor.getApplication(); if (app == null && bundleDescriptor instanceof Application) { setMessageDestination(msgDest);
/** * @param messageDestiation the message destination to which I refer. */ public void setMessageDestination(MessageDestinationDescriptor newMsgDest) { referencer.setMessageDestination(newMsgDest); }
public boolean isLinkedToMessageDestination() { return msgDestReferencer.isLinkedToMessageDestination(); }
private BundleDescriptor getBundleDescriptor() { return ownedByMessageDestinationRef() ? ownerMsgDestRef.getReferringBundleDescriptor() : ownerMsgBean.getEjbBundleDescriptor(); }
/** * @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; }
/** * Sets the name of the message destination to which I refer. */ public void setMessageDestinationLinkName(String linkName) { msgDestReferencer.setMessageDestinationLinkName(linkName); }
/** * Constructs a reference in the extrernal state. */ public MessageDestinationReferenceDescriptor() { referencer = new MessageDestinationReferencerImpl(this); }
/** * @return the name of the message destination to which I refer */ public String getMessageDestinationLinkName() { return msgDestReferencer.getMessageDestinationLinkName(); }