/** * Add a message destination reference for this web application. * * @param mdr New message destination reference */ public void addMessageDestinationRef(MessageDestinationRef mdr) { if (entries.containsKey(mdr.getName())) { return; } else { entries.put(mdr.getName(), mdr.getType()); } synchronized (mdrs) { mdr.setNamingResources(this); mdrs.put(mdr.getName(), mdr); } support.firePropertyChange("messageDestinationRef", null, mdr); }
/** * Return a String representation of this object. */ @Override public String toString() { StringBuilder sb = new StringBuilder("MessageDestination["); sb.append("name="); sb.append(getName()); if (link != null) { sb.append(", link="); sb.append(link); } if (getType() != null) { sb.append(", type="); sb.append(getType()); } if (usage != null) { sb.append(", usage="); sb.append(usage); } if (getDescription() != null) { sb.append(", description="); sb.append(getDescription()); } sb.append("]"); return (sb.toString()); }
appendElement(sb, INDENT4, "description", mdr.getDescription()); appendElement(sb, INDENT4, "message-destination-ref-name", mdr.getName()); appendElement(sb, INDENT4, "message-destination-type", mdr.getType()); appendElement(sb, INDENT4, "message-destination-usage", mdr.getUsage()); appendElement(sb, INDENT4, "message-destination-link", mdr.getLink()); for (InjectionTarget target : mdr.getInjectionTargets()) { sb.append(" <injection-target>\n"); appendElement(sb, INDENT6, "injection-target-class",
MessageDestinationRef resource = new MessageDestinationRef(); resource.setName(annotation.name()); resource.setType(annotation.type().getCanonicalName()); resource.setUsage(annotation.mappedName()); resource.setDescription(annotation.description());
public void addMessageDestinationRef( MessageDestinationRef messageDestinationRef) { if (messageDestinationRefs.containsKey( messageDestinationRef.getName())) { // message-destination-ref names must be unique within a // web(-fragment).xml throw new IllegalArgumentException(sm.getString( "webXml.duplicateMessageDestinationRef", messageDestinationRef.getName())); } messageDestinationRefs.put(messageDestinationRef.getName(), messageDestinationRef); } public Map<String,MessageDestinationRef> getMessageDestinationRefs() {
/** * Remove any message destination reference with the specified name. * * @param name Name of the message destination resource reference to remove */ public void removeMessageDestinationRef(String name) { entries.remove(name); MessageDestinationRef mdr = null; synchronized (mdrs) { mdr = mdrs.remove(name); } if (mdr != null) { support.firePropertyChange("messageDestinationRef", mdr, null); mdr.setNamingResources(null); } }
appendElement(sb, INDENT4, "description", mdr.getDescription()); appendElement(sb, INDENT4, "message-destination-ref-name", mdr.getName()); appendElement(sb, INDENT4, "message-destination-type", mdr.getType()); appendElement(sb, INDENT4, "message-destination-usage", mdr.getUsage()); appendElement(sb, INDENT4, "message-destination-link", mdr.getLink()); for (InjectionTarget target : mdr.getInjectionTargets()) { sb.append(" <injection-target>\n"); appendElement(sb, INDENT6, "injection-target-class",
MessageDestinationRef resource = new MessageDestinationRef(); resource.setName(annotation.name()); resource.setType(annotation.type().getCanonicalName()); resource.setUsage(annotation.mappedName()); resource.setDescription(annotation.description());
public void addMessageDestinationRef( MessageDestinationRef messageDestinationRef) { if (messageDestinationRefs.containsKey( messageDestinationRef.getName())) { // message-destination-ref names must be unique within a // web(-fragment).xml throw new IllegalArgumentException(sm.getString( "webXml.duplicateMessageDestinationRef", messageDestinationRef.getName())); } messageDestinationRefs.put(messageDestinationRef.getName(), messageDestinationRef); } public Map<String,MessageDestinationRef> getMessageDestinationRefs() {
/** * Remove any message destination reference with the specified name. * * @param name Name of the message destination resource reference to remove */ public void removeMessageDestinationRef(String name) { entries.remove(name); MessageDestinationRef mdr = null; synchronized (mdrs) { mdr = mdrs.remove(name); } if (mdr != null) { support.firePropertyChange("messageDestinationRef", mdr, null); mdr.setNamingResources(null); } }
appendElement(sb, INDENT4, "description", mdr.getDescription()); appendElement(sb, INDENT4, "message-destination-ref-name", mdr.getName()); appendElement(sb, INDENT4, "message-destination-type", mdr.getType()); appendElement(sb, INDENT4, "message-destination-usage", mdr.getUsage()); appendElement(sb, INDENT4, "message-destination-link", mdr.getLink()); for (InjectionTarget target : mdr.getInjectionTargets()) { sb.append(" <injection-target>\n"); appendElement(sb, INDENT6, "injection-target-class",
MessageDestinationRef resource = new MessageDestinationRef(); resource.setName(name); resource.setType(type); resource.setUsage(annotation.mappedName()); resource.setDescription(annotation.description());
/** * Add a message destination reference for this web application. * * @param mdr New message destination reference */ public void addMessageDestinationRef(MessageDestinationRef mdr) { if (entries.containsKey(mdr.getName())) { return; } else { entries.put(mdr.getName(), mdr.getType()); } synchronized (mdrs) { mdr.setNamingResources(this); mdrs.put(mdr.getName(), mdr); } support.firePropertyChange("messageDestinationRef", null, mdr); }
/** * Return a String representation of this object. */ @Override public String toString() { StringBuilder sb = new StringBuilder("MessageDestination["); sb.append("name="); sb.append(getName()); if (link != null) { sb.append(", link="); sb.append(link); } if (getType() != null) { sb.append(", type="); sb.append(getType()); } if (usage != null) { sb.append(", usage="); sb.append(usage); } if (getDescription() != null) { sb.append(", description="); sb.append(getDescription()); } sb.append("]"); return (sb.toString()); }
public void addMessageDestinationRef( MessageDestinationRef messageDestinationRef) { if (messageDestinationRefs.containsKey( messageDestinationRef.getName())) { // message-destination-ref names must be unique within a // web(-fragment).xml throw new IllegalArgumentException(sm.getString( "webXml.duplicateMessageDestinationRef", messageDestinationRef.getName())); } messageDestinationRefs.put(messageDestinationRef.getName(), messageDestinationRef); } public Map<String,MessageDestinationRef> getMessageDestinationRefs() {
/** * Remove any message destination reference with the specified name. * * @param name Name of the message destination resource reference to remove */ public void removeMessageDestinationRef(String name) { entries.remove(name); MessageDestinationRef mdr = null; synchronized (mdrs) { mdr = mdrs.remove(name); } if (mdr != null) { support.firePropertyChange("messageDestinationRef", mdr, null); mdr.setNamingResources(null); } }
appendElement(sb, INDENT4, "description", mdr.getDescription()); appendElement(sb, INDENT4, "message-destination-ref-name", mdr.getName()); appendElement(sb, INDENT4, "message-destination-type", mdr.getType()); appendElement(sb, INDENT4, "message-destination-usage", mdr.getUsage()); appendElement(sb, INDENT4, "message-destination-link", mdr.getLink()); for (InjectionTarget target : mdr.getInjectionTargets()) { sb.append(" <injection-target>\n"); appendElement(sb, INDENT6, "injection-target-class",
MessageDestinationRef resource = new MessageDestinationRef(); resource.setName(annotation.name()); resource.setType(annotation.type().getCanonicalName()); resource.setUsage(annotation.mappedName()); resource.setDescription(annotation.description());
/** * Add a message destination reference for this web application. * * @param mdr New message destination reference */ public void addMessageDestinationRef(MessageDestinationRef mdr) { if (entries.containsKey(mdr.getName())) { return; } else { entries.put(mdr.getName(), mdr.getType()); } synchronized (mdrs) { mdr.setNamingResources(this); mdrs.put(mdr.getName(), mdr); } support.firePropertyChange("messageDestinationRef", null, mdr); }
/** * Return a String representation of this object. */ @Override public String toString() { StringBuilder sb = new StringBuilder("MessageDestination["); sb.append("name="); sb.append(getName()); if (link != null) { sb.append(", link="); sb.append(link); } if (getType() != null) { sb.append(", type="); sb.append(getType()); } if (usage != null) { sb.append(", usage="); sb.append(usage); } if (getDescription() != null) { sb.append(", description="); sb.append(getDescription()); } sb.append("]"); return (sb.toString()); }