private void addMessageDestinationAnnotations(EJBContainer container, MessageDestinationReferencesMetaData refs) { if(refs == null) return; for(MessageDestinationReferenceMetaData ref : refs) { if (ref.getMappedName() == null || ref.getMappedName().equals("")) { JBossAssemblyDescriptorMetaData descriptor = dd.getAssemblyDescriptor(); if (descriptor != null) { MessageDestinationMetaData destination = descriptor.getMessageDestination(ref.getLink()); if (destination != null) { ref.setMappedName(destination.getJndiName()); } } } } }
protected MessageDestinationReferenceMetaData createMessageRef(Resource annotation, E element) { MessageDestinationReferenceMetaData ref = new MessageDestinationReferenceMetaData(); String name = annotation.name(); if(name.length() == 0) name = getName(element); ref.setMessageDestinationRefName(name); if(annotation.mappedName().length() > 0) ref.setMappedName(annotation.mappedName()); if(annotation.type() != Object.class) ref.setType(annotation.type().getName()); else ref.setType(getType(element)); Descriptions descriptions = ProcessorUtils.getDescription(annotation.description()); if(descriptions != null) ref.setDescriptions(descriptions); String injectionName = getInjectionName(element); Set<ResourceInjectionTargetMetaData> injectionTargets = ProcessorUtils.getInjectionTargets(injectionName, element); if(injectionTargets != null) ref.setInjectionTargets(injectionTargets); return ref; }
protected MessageDestinationReferenceMetaData createMessageRef(Resource annotation, E element) { MessageDestinationReferenceMetaData ref = new MessageDestinationReferenceMetaData(); String name = annotation.name(); if(name.length() == 0) name = getName(element); ref.setMessageDestinationRefName(name); if(annotation.mappedName().length() > 0) ref.setMappedName(annotation.mappedName()); if(annotation.type() != Object.class) ref.setType(annotation.type().getName()); else ref.setType(getType(element)); Descriptions descriptions = ProcessorUtils.getDescription(annotation.description()); if(descriptions != null) ref.setDescriptions(descriptions); String injectionName = getInjectionName(element); Set<ResourceInjectionTargetMetaData> injectionTargets = ProcessorUtils.getInjectionTargets(injectionName, element); if(injectionTargets != null) ref.setInjectionTargets(injectionTargets); return ref; }
if(mref.getType() != null) ref.setType(mref.getType()); mref.setMappedName(ref.getMappedName()); mref.setMappedName(ref.getMappedName());
if(existingRef.getType() != null) ref.setType(mref.getType()); existingRef.setMappedName(ref.getMappedName()); mref.setMappedName(ref.getMappedName());
if(existingRef.getType() != null) ref.setType(mref.getType()); existingRef.setMappedName(ref.getMappedName()); mref.setMappedName(ref.getMappedName());