org.nutz.lang.inject.Injecting Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of nutz Show documentation
Show all versions of nutz Show documentation
Nutz, which is a collections of lightweight frameworks, each of them can be used independently
package org.nutz.lang.inject;
/**
* 抽象注入接口
*
* 封装了通过 setter 以及 field 两种方式设置值的区别
*
* @author zozoh([email protected])
*/
public interface Injecting {
/**
* 通过反射,向对象某一字段设置一个值
*
* @param obj
* 被设值的对象
* @param value
* 值
*/
void inject(Object obj, Object value);
}