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