@Target(value=METHOD) @Retention(value=RUNTIME) @Documented public @interface MessageTemplate
This only works on interfaces which are annotated with MessageBundle
.
Depending on the MessageResolver
this message template value might be
used as key to lookup internationalized values from a ResourceBundle
.
A MessageTemplate value which starts and ends with brackets '{', '}' will be interpreted as key for resolving from a
ResourceBundle or any other lookup mechanism determined by the
MessageResolver
. A small example:
@MessageTemplate("{welcome_to}")This will lookup a
welcome_to = Hello to Aruba
from the configured resource bundle.
MessageTemplate values without '{', '}' bracelets will be directly used without resource lookup.
public abstract String value
Copyright © 2020 The Apache Software Foundation. All rights reserved.