@Target(value=METHOD) @Retention(value=RUNTIME) @Documented public @interface MessageTemplate
Provides the message(-template) for type-safe messages.
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 bracelets '{', '}' 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 © 2011-2013 The Apache Software Foundation. All Rights Reserved.