Module uk.autores
Package 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
-
ClassDescriptionAnnotation for
GenerateByteArraysFromFiles
.Annotation forGenerateInputStreamsFromFiles
.Annotation forGenerateConstantsFromProperties
.Annotation forGenerateMessagesFromProperties
.Common processing instructions annotation.Error handling choices enum.Code generation choices enum.Annotation forGenerateStringsFromText
.