@Retention(value=RUNTIME) @Target(value=METHOD) public @interface Message
Each method of a message bundle interface annotated with MessageBundle
must be annotated with this annotation.
MessageBundle
Modifier and Type | Fields and Description |
---|---|
static String |
DEFAULT_NAME
Constant value for
key() indicating that the default strategy specified by MessageBundle.defaultKey()
should be used. |
static String |
ELEMENT_NAME
Constant value for
key() indicating that the annotated element's name should be used as-is. |
static String |
HYPHENATED_ELEMENT_NAME
Constant value for
key() indicating that the annotated element's name should be de-camel-cased and
hyphenated, and then used. |
static String |
UNDERSCORED_ELEMENT_NAME
Constant value for
key() indicating that the annotated element's name should be de-camel-cased and parts
separated by underscores, and then used. |
public static final String DEFAULT_NAME
key()
indicating that the default strategy specified by MessageBundle.defaultKey()
should be used.public abstract String value
public abstract String key
Copyright © 2020 JBoss by Red Hat. All rights reserved.