Annotation bindingAnnotation = null;
boolean preInjectableFound = false;
for (Annotation annotation : annotations) {
if (Named.class.isInstance(annotation)) {
Named named = (Named) annotation;
args.add(new NamedParameter(named.value(), method.getGenericParameterTypes()[i]));
preInjectableFound = true;
break;
}
if (javax.inject.Named.class.isInstance(annotation)) {
javax.inject.Named named = (javax.inject.Named) annotation;
args.add(new NamedParameter(named.value(), method.getGenericParameterTypes()[i]));
preInjectableFound = true;
break;
}
else if (annotation.annotationType().isAnnotationPresent(BindingAnnotation.class)) {
bindingAnnotation = annotation;