@Retention(value=RUNTIME) @Target(value={FIELD,PARAMETER}) @Documented public @interface ConfigItem
Modifier and Type | Fields and Description |
---|---|
static String |
ELEMENT_NAME
Constant value for
name() indicating that the annotated element's name should be used as-is. |
static String |
HYPHENATED_ELEMENT_NAME
Constant value for
name() indicating that the annotated element's name should be de-camel-cased and
hyphenated, and then used. |
static String |
NO_DEFAULT
Constant value for
defaultValue() indicating that no default value should be used (the value is
a configuration group or it is Optional ). |
static String |
PARENT
Constant value for
name() indicating that the parent's name for the member referencing this item's
group should be used as the name of this item. |
Modifier and Type | Optional Element and Description |
---|---|
String |
defaultValue
Specify the default value of the configuration item, if none is found in the configuration.
|
String |
defaultValueDocumentation
Specify the default value documentation, when it cannot be expressed by
defaultValue() . |
String |
name
Specify the relative name of the configuration item.
|
public static final String NO_DEFAULT
defaultValue()
indicating that no default value should be used (the value is
a configuration group or it is Optional
).public abstract String name
public abstract String defaultValue
public abstract String defaultValueDocumentation
defaultValue()
. For example,
if your default only exists for the DEV mode, you can use "true (DEV)"
.Copyright © 2019 JBoss by Red Hat. All rights reserved.