Package io.quarkus.runtime.annotations
Annotation Type ConfigItem
-
@Retention(RUNTIME) @Target({FIELD,PARAMETER}) @Documented public @interface ConfigItem
A single container configuration item.
-
-
Field Summary
Fields Modifier and Type Fields Description static StringELEMENT_NAMEConstant value forname()indicating that the annotated element's name should be used as-is.static StringHYPHENATED_ELEMENT_NAMEConstant value forname()indicating that the annotated element's name should be de-camel-cased and hyphenated, and then used.static StringNO_DEFAULTConstant value fordefaultValue()indicating that no default value should be used (the value is a configuration group or it isOptional).static StringPARENTConstant value forname()indicating that the parent's name for the member referencing this item's group should be used as the name of this item.
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description StringdefaultValueSpecify the default value of the configuration item, if none is found in the configuration.StringdefaultValueDocumentationSpecify the default value documentation, when it cannot be expressed bydefaultValue().StringnameSpecify the relative name of the configuration item.
-
-
-
-
NO_DEFAULT
static final String NO_DEFAULT
Constant value fordefaultValue()indicating that no default value should be used (the value is a configuration group or it isOptional).
-
-
Element Detail
-
name
String name
Specify the relative name of the configuration item.- Returns:
- the name
- Default:
- "<<hyphenated element name>>"
-
-
-
defaultValue
String defaultValue
Specify the default value of the configuration item, if none is found in the configuration.- Returns:
- the default value
- Default:
- "<<no default>>"
-
-
-
defaultValueDocumentation
String defaultValueDocumentation
Specify the default value documentation, when it cannot be expressed bydefaultValue(). For example, if your default only exists for the DEV mode, you can use"true (DEV)".- Returns:
- the default value documentation
- Default:
- ""
-
-