Package com.github.joschi.jadconfig
Annotation Interface Parameter
Annotation to mark a configuration parameter in a configuration bean
- Author:
- jschalanda
-
Required Element Summary
Required Elements -
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionSpecificConverterto use for this parameter.Optional fallback name of the configuration option in theRepositoryUsed only when the original name invalue()doesn't deliver any results in the repository.booleanWhether this is a required parameter.booleanWhether this parameter value should be trimmed before processing.Deprecated.SpecificValidators to use for this parameter.
-
Element Details
-
value
String valueName of the configuration option in theRepository -
required
boolean requiredWhether this is a required parameter. If the parameter is missing but requiredJadConfigwill throw aParameterException- Default:
false
-
trim
boolean trimWhether this parameter value should be trimmed before processing.- See Also:
- Default:
true
-
converter
SpecificConverterto use for this parameter. This will override any configuredConverterin anyConverterFactoryused byJadConfig.- Default:
com.github.joschi.jadconfig.converters.NoConverter.class
-
validator
Deprecated.Usevalidators()instead.SpecificValidatorto use for this parameter.- Default:
com.github.joschi.jadconfig.validators.NoValidator.class
-
validators
SpecificValidators to use for this parameter.- Default:
{com.github.joschi.jadconfig.validators.NoValidator.class}
-
fallbackPropertyName
String fallbackPropertyNameOptional fallback name of the configuration option in theRepositoryUsed only when the original name invalue()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 isvalue(), thenfallbackPropertyName()and if there are no values, only then the field value will be used (=stays untouched)- Default:
""
-
validators()instead.