@Retention(value=SOURCE) public @interface Texts
Strings.xyz methods.
This API can be used in compile-only mode (e.g. Maven scope provided) - it
uses an annotation processor that collects all @Texts annotation
usages and generates completely independent Strings class to be
used in your application.
The processor can be configured via two parameters (passed to javac
with prefix -A):
public abstract String[] value
key=message format
for each element in the array. Use {n} starting with n
being zero to define substitutions into the text message.
Each key will result into key() method being generated into
the Strings class. If the message has parameters, they will
become substituable by the methods arguments.
key=message stringsCopyright © 2020. All rights reserved.