public ServiceRefInjector(String name, AnnotatedElement anElement, ServiceReferenceMetaData sref) { this(name, sref); this.sref.setAnnotatedElement(anElement); }
if(annotation.mappedName().length() > 0) ref.setMappedName(annotation.mappedName()); ref.setAnnotatedElement(element); if(annotation.wsdlLocation().length() > 0) ref.setWsdlFile(annotation.wsdlLocation());
protected ServiceReferenceMetaData createServiceRef(Resource annotation, E element) { ServiceReferenceMetaData ref = new ServiceReferenceMetaData(); String name = annotation.name(); if(name.length() == 0) name = getName(element); ref.setServiceRefName(name); if(annotation.mappedName().length() > 0) ref.setMappedName(annotation.mappedName()); ref.setAnnotatedElement(element); DescriptionGroupMetaData dg = ProcessorUtils.getDescriptionGroup(annotation.description()); if(dg != null) ref.setDescriptionGroup(dg); if(annotation.type() != Object.class) ref.setServiceRefType(annotation.type().getName()); else ref.setServiceRefType(getType(element)); String injectionName = getInjectionName(element); Set<ResourceInjectionTargetMetaData> injectionTargets = ProcessorUtils.getInjectionTargets(injectionName, element); if(injectionTargets != null) ref.setInjectionTargets(injectionTargets); return ref; }
protected ServiceReferenceMetaData createServiceRef(Resource annotation, E element) { ServiceReferenceMetaData ref = new ServiceReferenceMetaData(); String name = annotation.name(); if(name.length() == 0) name = getName(element); ref.setServiceRefName(name); if(annotation.mappedName().length() > 0) ref.setMappedName(annotation.mappedName()); ref.setAnnotatedElement(element); DescriptionGroupMetaData dg = ProcessorUtils.getDescriptionGroup(annotation.description()); if(dg != null) ref.setDescriptionGroup(dg); if(annotation.type() != Object.class) ref.setServiceRefType(annotation.type().getName()); else ref.setServiceRefType(getType(element)); String injectionName = getInjectionName(element); Set<ResourceInjectionTargetMetaData> injectionTargets = ProcessorUtils.getInjectionTargets(injectionName, element); if(injectionTargets != null) ref.setInjectionTargets(injectionTargets); return ref; }
setHandlerChains(original.getHandlerChains()); if(override != null && override.getAnnotatedElement() != null) setAnnotatedElement(override.getAnnotatedElement()); else if(original != null && original.getAnnotatedElement() != null) setAnnotatedElement(original.getAnnotatedElement()); if(override != null && override.getHandlerChain() != null) setHandlerChain(override.getHandlerChain());