Package de.codecamp.messages
Annotation Type MessagesFor
-
@Target({TYPE,METHOD}) @Retention(RUNTIME) @Repeatable(Container.class) @Documented public @interface MessagesFor
This annotation is used to declare message keys for types that cannot be annotated directly. This means@MessagesFor(type=SomeType.class, ...)is equivalent to annotatingSomeTypedirectly using@Messages(...).
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description booleanforPropertiesReturns whether message keys for all bean properties of the annotated type should be created.booleanforTypeReturns whether a message key for the annotated type should be created.String[]keys(Additional) Message keys.StringprefixThe prefix to be used for message keys.String[]value(Additional) Message keys.
-
-
-
-
prefix
String prefix
The prefix to be used for message keys. This can only be set if this annotation is at the type level. If not set, the fully qualified name of the source type is used.- Returns:
- prefix to be used for message keys
- Default:
- "__SOURCE_TYPE__"
-
-