Package io.quarkus.qute.i18n
Annotation Type Message
-
@Retention(RUNTIME) @Target(METHOD) public @interface Message
Identifies a message bundle method.Each method of a message bundle interface annotated with
MessageBundlemust be annotated with this annotation.- See Also:
MessageBundle
-
-
Field Summary
Fields Modifier and Type Fields Description static StringDEFAULT_NAMEConstant value forkey()indicating that the default strategy specified byMessageBundle.defaultKey()should be used.static StringDEFAULT_VALUEConstant value forvalue()indicating that message template value specified in a localized file should be used.static StringELEMENT_NAMEConstant value forkey()indicating that the annotated element's name should be used as-is.static StringHYPHENATED_ELEMENT_NAMEConstant value forkey()indicating that the annotated element's name should be de-camel-cased and hyphenated, and then used.static StringUNDERSCORED_ELEMENT_NAMEConstant value forkey()indicating that the annotated element's name should be de-camel-cased and parts separated by underscores, and then used.
-
-
-
Field Detail
-
DEFAULT_NAME
static final String DEFAULT_NAME
Constant value forkey()indicating that the default strategy specified byMessageBundle.defaultKey()should be used.
-
-
Element Detail
-
key
String key
- Returns:
- the key
- Default:
- "<<default>>"
-
-
-
value
String value
This value has higher priority over a message template specified in a localized file, and it's considered a good practice to specify it. In case the value is not provided and there is no match in the localized file too, the build fails.- Returns:
- the message template
- Default:
- "<<default value>>"
-
-