| Modifier and Type | Fields and Description |
|---|---|
static String |
UNSET_PREFIX |
| Modifier and Type | Optional Element and Description |
|---|---|
ConfigProperties.NamingStrategy |
namingStrategy
The naming strategy to use for the corresponding property.
|
String |
prefix
If the default is used, the class name will be used to determine the proper prefix
|
public static final String UNSET_PREFIX
public abstract String prefix
public abstract ConfigProperties.NamingStrategy namingStrategy
NamingStrategy.VERBATIM means that whatever the name of the field / method is, that will be the name of the
property.
NamingStrategy.KEBAB_CASE means that the name of property is derived by replacing case changes with a dash.
For a example:
/**
@ConfigProperties(prefix="whatever")
public class SomeConfig {
public fooBar;
}
Then to set the fooBar field, the corresponding property would be whatever.fooBar.
If namingStrategy=NamingStrategy.KEBAB_CASE were being used, then the corresponding property would be
whatever.foo-bar
When this field is not set, then the default strategy will be determined by the value of
quarkus.arc.config-properties-default-naming-strategyCopyright © 2020 JBoss by Red Hat. All rights reserved.