Assigns a message string to a resource method. The method arguments are used to supply the positional parameter
values for the method.
- Author:
- David M. Lloyd
-
Nested Class Summary
-
Required Element Summary
-
Optional Element Summary
Modifier and TypeOptional ElementDescriptionThe format type of this method (defaults toMessage.Format.PRINTF
).int
The message ID number. -
Field Summary
-
Field Details
-
NONE
static final int NONEIndicates that this message has no ID.- See Also:
-
INHERIT
static final int INHERITIndicates that this message should inherit the ID from another message with the same name.- See Also:
-
-
Element Details
-
id
int idThe message ID number. Only one message with a given name may specify an ID other thanINHERIT
.- Returns:
- the message ID number
- Default:
-1
-
value
String valueThe default format string of this message.Expressions in the form of
${property.key:default-value}
can be used for the value. If the property key is prefixed withsys.
a system property will be used. If the key is prefixed withenv.
an environment variable will be used. In all other cases theorg.jboss.logging.tools.expressionProperties
processor argument is used to specify the path the properties file which contains the values for the expressions.- Returns:
- the format string
-
format
Message.Format formatThe format type of this method (defaults toMessage.Format.PRINTF
).- Returns:
- the format type
- Default:
PRINTF
-