Search in sources :

Example 1 with ValueInjector

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));
}
Also used : ClassDefine(com.blade.ioc.bean.ClassDefine) ValueInjector(com.blade.ioc.bean.ValueInjector)

Aggregations

ClassDefine (com.blade.ioc.bean.ClassDefine)1 ValueInjector (com.blade.ioc.bean.ValueInjector)1