if (beans.size() > 1) {
throw new StartException("Error resolving CDI injection point " + field + " on " + componentClass + ". Injection points is ambiguous " + beans);
} else if (beans.isEmpty()) {
throw new StartException("Error resolving CDI injection point " + field + " on " + componentClass + ". No bean satisfies the injection point.");
}
Bean<?> bean = bm.resolve(beans);
injectionPoints.add(new CDIFieldInjection(field.getJavaMember(), bean, ip));
}
}
//now look for @Inject methods
for (AnnotatedMethod<?> method : weldClass.getMethods()) {