Module uk.autores
Package uk.autores
An annotation driven library for working with embedded resource files. This package contains the core library functionality. See other packages for annotation processing and extensibility.
AUTORES
Usage
-
Add
import uk.autores.*; -
Annotate a package (
ElementType.PACKAGE) or type (ElementType.TYPE) with one of the provided annotations -
Set
String[] values()to the resource file names
| Annotation | Consumes | Description |
|---|---|---|
ByteArrays |
any file | Generate one class per file that returns byte[]. |
InputStreams |
any file | Generate single class with one InputStream method per file. |
Keys |
properties | Generate one constants class with keys per Properties file. |
Messages |
properties | Generate one localized, formatting message generator class per Properties file. |
Texts |
text files | Generate one class per text file that returns String. |
Links
-
Enum Summary Enum Description Severity Error handling choices enum.Strategy Code generation choices enum. -
Annotation Types Summary Annotation Type Description ByteArrays Annotation forGenerateByteArraysFromFiles.InputStreams Annotation forGenerateInputStreamsFromFiles.Keys Annotation forGenerateConstantsFromProperties.Messages Annotation forGenerateMessagesFromProperties.Processing Common processing instructions annotation.Texts Annotation forGenerateStringsFromText.