continue;
}
// BeanUtil.setDeclaredProperty(bean, pip.propertyDescriptor.getName(), value);
Setter setter = pip.propertyDescriptor.getSetter(true);
try {
setter.invokeSetter(bean, value);
}
catch (Exception ex) {
throw new PetiteException("Wiring failed", ex);
}
}
// sets
if (def.sets == null) {
def.sets = petiteResolvers.resolveSetInjectionPoint(def.type, def.wiringMode == WiringMode.AUTOWIRE);
}
for (SetInjectionPoint sip : def.sets) {
String[] beanNames = resolveBeanNamesForType(sip.targetClass);
Collection beans = sip.createSet(beanNames.length);
for (String beanName : beanNames) {
if (beanName.equals(def.name) == false) {
Object value = getBean(beanName, acquiredBeans);
beans.add(value);
}
}
//BeanUtil.setDeclaredProperty(bean, sip.field.getName(), beans);
Setter setter = sip.propertyDescriptor.getSetter(true);
try {
setter.invokeSetter(bean, beans);
}
catch (Exception ex) {
throw new PetiteException("Wiring failed", ex);
}
}