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; }