public class DefaultWeaver extends Object implements ObjectWeaver
构造器和说明 |
---|
DefaultWeaver() |
限定符和类型 | 方法和说明 |
---|---|
Object |
born(IocMaking ing)
根据自身内容创建一个对象,并触发创建事件
|
<T> T |
fill(IocMaking ing,
T obj)
根据容器构造时,为一个对象填充字段
|
Object |
onCreate(Object obj)
为对象触发 CREATE 事件
|
void |
setArgs(ValueProxy[] args) |
void |
setBorning(Borning<?> borning) |
void |
setCreate(IocEventTrigger<Object> create) |
void |
setFields(FieldInjector[] fields) |
public void setCreate(IocEventTrigger<Object> create)
public void setBorning(Borning<?> borning)
public void setArgs(ValueProxy[] args)
public void setFields(FieldInjector[] fields)
public <T> T fill(IocMaking ing, T obj)
ObjectWeaver
fill
在接口中 ObjectWeaver
ing
- 容器构造时obj
- 对象,要被填充字段public Object born(IocMaking ing)
ObjectWeaver
born
在接口中 ObjectWeaver
ing
- 容器构造时public Object onCreate(Object obj)
ObjectWeaver
onCreate
在接口中 ObjectWeaver
obj
- 对象Copyright © 2017. All rights reserved.