Package org.jeasy.props.annotations
Annotation Type I18NProperty
-
@Retention(RUNTIME) @Target(FIELD) public @interface I18NProperty
This annotation can be declared on a field in which a property should be injected from a resource bundle.- Author:
- Mahmoud Ben Hassine (mahmoud.benhassine@icloud.com)
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description StringcountryThe locale country to use.StringdefaultValueThe default value to set in case the key does not exist or cannot be loaded.booleanfailFastFlag to fail the configuration process if the key is absentStringlanguageThe locale language to use.intorderInjection order regarding other annotations.StringvariantThe locale variant to use.
-
-
-
Element Detail
-
bundle
String bundle
The resource bundle containing the property to load.- Returns:
- The resource bundle containing the property to load
-
-
-
key
String key
The key to load from the resource bundle.- Returns:
- The key to load from the resource bundle
-
-
-
defaultValue
String defaultValue
The default value to set in case the key does not exist or cannot be loaded.- Returns:
- the default value to set
- Default:
- ""
-
-
-
language
String language
The locale language to use.- Returns:
- The locale language to use
- Default:
- ""
-
-
-
country
String country
The locale country to use.- Returns:
- The locale country to use
- Default:
- ""
-
-
-
variant
String variant
The locale variant to use.- Returns:
- The locale variant to use
- Default:
- ""
-
-