Annotation Interface Parameters
Annotation to add parameters to an enum constant that implements
LocalizationKey.
WARNING: This annotation can only be applied to enum constants!
Using this on another static field, i.E. with LocalizationKey.of(String)
will throw an IllegalArgumentException.
Example:
enum Keys implements LocalizationKey {
@Parameters({"user", "attempts"})
WARN_LOGIN_ATTEMPTS,
@Parameters({"username"})
USER_NOT_FOUND,
}-
Optional Element Summary
Optional Elements
-
Element Details
-
value
String[] valueThe parameters associated with the localization key.These parameters can be used in the localization message to replace placeholders.
- Returns:
- an array of parameter names
- Default:
- {}
-