@Retention(value=RUNTIME) @Target(value={FIELD,TYPE}) @Documented @Inherited public @interface Conf
Modifier and Type | Required Element and Description |
---|---|
String |
value
配置名称,一般用xxx.xxx的这种格式。
|
Modifier and Type | Optional Element and Description |
---|---|
String |
comment
the comment of this conf
|
boolean |
getter
是否 *优先* 使用getter判断是否为null
|
String |
getterName
指定getter方法,无参数。 类上无效
|
boolean |
onlyNull
是否只有当字段为null的时候才注入
|
boolean |
setter
是否 *优先* 使用setter注入
|
String |
setterName
指定setter方法,参数类型必定为字段类型或者子类, 类上无效
|
Class<?> |
setterParameterType
setter方法的参数类型是什么。如果是Object类型则默认认为是与字段相同。
|
public abstract String value
public abstract String setterName
public abstract String getterName
public abstract Class<?> setterParameterType
public abstract String comment
Copyright © 2020. All rights reserved.