Package io.quarkus.runtime.annotations
Annotation Interface ConfigItem
@Retention(RUNTIME)
@Target({FIELD,PARAMETER})
@Documented
@Deprecated(since="3.19",
forRemoval=true)
public @interface ConfigItem
Deprecated, for removal: This API element is subject to removal in a future version.
A single container configuration item.
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionDeprecated, for removal: This API element is subject to removal in a future version.Specify the default value of the configuration item, if none is found in the configuration.Deprecated, for removal: This API element is subject to removal in a future version.Specify the default value documentation, when it cannot be expressed bydefaultValue().booleanDeprecated, for removal: This API element is subject to removal in a future version.Specify whether documentation should be generated for this config item.Deprecated, for removal: This API element is subject to removal in a future version.Specify the relative name of the configuration item. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringDeprecated, for removal: This API element is subject to removal in a future version.Constant value forname()indicating that the annotated element's name should be used as-is.static final StringDeprecated, for removal: This API element is subject to removal in a future version.Constant value forname()indicating that the annotated element's name should be de-camel-cased and hyphenated, and then used.static final StringDeprecated, for removal: This API element is subject to removal in a future version.Constant value fordefaultValue()indicating that no default value should be used (the value is a configuration group or it isOptional).static final StringDeprecated, for removal: This API element is subject to removal in a future version.Constant 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.
-
Field Details
-
ELEMENT_NAME
Deprecated, for removal: This API element is subject to removal in a future version.Constant value forname()indicating that the annotated element's name should be used as-is.- See Also:
-
HYPHENATED_ELEMENT_NAME
Deprecated, for removal: This API element is subject to removal in a future version.Constant value forname()indicating that the annotated element's name should be de-camel-cased and hyphenated, and then used.- See Also:
-
PARENT
Deprecated, for removal: This API element is subject to removal in a future version.Constant 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. This value is only valid for members of configuration groups.- See Also:
-
NO_DEFAULT
Deprecated, for removal: This API element is subject to removal in a future version.Constant value fordefaultValue()indicating that no default value should be used (the value is a configuration group or it isOptional).- See Also:
-
-
Element Details
-
name
String nameDeprecated, for removal: This API element is subject to removal in a future version.Specify the relative name of the configuration item.- Returns:
- the name
- Default:
- "<<hyphenated element name>>"
-
defaultValue
String defaultValueDeprecated, for removal: This API element is subject to removal in a future version.Specify the default value of the configuration item, if none is found in the configuration.- Returns:
- the default value
- Default:
- "<<no default>>"
-
defaultValueDocumentation
String defaultValueDocumentationDeprecated, for removal: This API element is subject to removal in a future version.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:
- ""
-
generateDocumentation
boolean generateDocumentationDeprecated, for removal: This API element is subject to removal in a future version.Specify whether documentation should be generated for this config item.This is only useful in very niche use cases where the build-time and runtime config both contain a configuration property with the exact same name, and we only want to generate documentation from one of them.
- Returns:
- whether documentation should be generated
- Default:
- true
-
@ConfigMappinginstead.