use of com.blade.ioc.bean.ValueInjector in project blade by biezhi.
the class IocKit method injectionValue.
public static void injectionValue(Environment environment, BeanDefine beanDefine) {
ClassDefine classDefine = ClassDefine.create(beanDefine.getType());
List<ValueInjector> valueFields = getValueInjectFields(environment, classDefine);
Object bean = beanDefine.getBean();
valueFields.forEach(fieldInjector -> fieldInjector.injection(bean));
}
Aggregations