return result;
}
private ParameterInjectionPoint findParameterInjectionPoint(ConstructorInjectionPoint constructorInjectionPoint) {
for (Object parameterInjectionPointObj : constructorInjectionPoint.getWeldParameters()) {
ParameterInjectionPoint parameterInjectionPoint = (ParameterInjectionPoint) parameterInjectionPointObj;
if (beanType.equals(parameterInjectionPoint.getBaseType())) {
return parameterInjectionPoint;
}
}
throw new RuntimeException("Cannot find a parameter injection point for " + beanType + " in constructor " +