| Constructor and Description |
|---|
VarHolderOfField(AppContext ctx,
FieldWrap fw,
Object obj,
InjectGather gather) |
| Modifier and Type | Method and Description |
|---|---|
void |
commit()
提交
|
AppContext |
context()
应用上下文
|
Annotation[] |
getAnnoS()
获取所有注解
|
Class<?> |
getDependencyType()
获取依赖类型
|
String |
getFullName()
获取完整名字
|
ParameterizedType |
getGenericType()
泛型(可能为null)
|
Class<?> |
getType()
获取字段类型
|
Object |
getValue()
获取值
|
boolean |
isDone()
是否为完成的(设置值后即为完成态)
|
boolean |
isField()
是否为字段
|
boolean |
required()
是否必须
|
void |
required(boolean required)
设定必须
|
void |
setDependencyType(Class<?> dependencyType)
设定依赖类型
|
void |
setValue(Object val)
设置值
|
void |
setValueDefault(Supplier supplier)
设置默认值
|
String |
toString() |
public VarHolderOfField(AppContext ctx, FieldWrap fw, Object obj, InjectGather gather)
public AppContext context()
@Nullable public ParameterizedType getGenericType()
getGenericType in interface VarHolderpublic Class<?> getDependencyType()
VarHoldergetDependencyType in interface VarHolderpublic void setDependencyType(Class<?> dependencyType)
VarHoldersetDependencyType in interface VarHolderpublic Annotation[] getAnnoS()
public String getFullName()
getFullName in interface VarHolderpublic void setValueDefault(Supplier supplier)
VarHoldersetValueDefault in interface VarHolderpublic void commit()
VarHolderCopyright © 2025. All rights reserved.