@Documented @Retention(value=RUNTIME) @Target(value=FIELD) public @interface Parameter
| Modifier and Type | Required Element and Description |
|---|---|
String |
value
Name of the configuration option in the
Repository |
| Modifier and Type | Optional Element and Description |
|---|---|
Class<? extends Converter<?>> |
converter
Specific
Converter to use for this parameter. |
String |
fallbackPropertyName
Optional fallback name of the configuration option in the
Repository
Used only when the original name in value() doesn't deliver any results in the repository. |
boolean |
required
Whether this is a required parameter.
|
boolean |
trim
Whether this parameter value should be trimmed before processing.
|
Class<? extends Validator<?>> |
validator
Deprecated.
Use
validators() instead. |
Class<? extends Validator<?>>[] |
validators
Specific
Validators to use for this parameter. |
public abstract String value
Repositorypublic abstract boolean required
JadConfig will
throw a ParameterExceptionpublic abstract boolean trim
Strings.trim(String)@Deprecated public abstract Class<? extends Validator<?>> validator
validators() instead.Validator to use for this parameter.public abstract String fallbackPropertyName
Repository
Used only when the original name in value() doesn't deliver any results in the repository.
If you have a hardcoded value in the field, it will be used only as a last resort. The order is value(),
then fallbackPropertyName() and if there are no values, only then the field value will be used (=stays untouched)Copyright © 2022. All rights reserved.