private void resolveTypeAnnotations(Injector injector) { for (Annotation annotation : rawType().getAnnotations()) { resolveScope(annotation, injector); Class<? extends Annotation> annoType = annotation.annotationType(); if (annoType == Named.class) { name = ((Named) annotation).value(); } else if (injector.isQualifier(annoType)) { qualifiers.add(annotation); } allAnnotations.put(annotation.annotationType(), annotation); storeTagAnnotation(annotation); } }
private void resolveTypeAnnotations(Injector injector) { for (Annotation annotation : rawType().getAnnotations()) { resolveScope(annotation, injector); Class<? extends Annotation> annoType = annotation.annotationType(); if (annoType == Named.class) { name = ((Named) annotation).value(); } else if (injector.isQualifier(annoType)) { qualifiers.add(annotation); } allAnnotations.put(annotation.annotationType(), annotation); storeTagAnnotation(annotation); } }
} else if (injector.isQualifier(cls)) { qualifiers.add(anno); annotations.put(anno.annotationType(), anno);
} else if (injector.isQualifier(cls)) { qualifiers.add(anno); annotations.put(anno.annotationType(), anno);