Module uk.autores.processing
Package uk.autores.processing.handlers
package uk.autores.processing.handlers
Resource handler implementations.
Resource Handlers
Handler |
Resources | Configuration | Description |
---|---|---|---|
GenerateByteArraysFromFiles |
any files | CfgVisibility CfgStrategy |
Generates classes with a method that return a resource as a byte array. |
GenerateConstantsFromProperties |
Properties files |
CfgVisibility |
Generates classes containing String constants of the keys in a properties file. |
GenerateInputStreamsFromFiles |
any files | CfgVisibility CfgName |
Generates a single class with methods for opening resource InputStream s. |
GenerateMessagesFromProperties |
Properties files |
CfgVisibility CfgLocalize CfgMissingKey CfgFormat CfgIncompatibleFormat |
Generates classes with methods for returning property values including support for localization and message formatting. |
GenerateStringsFromText |
text files | CfgVisibility CfgEncoding CfgStrategy |
Generates classes with a method that return a resource as a string. |
-
ClassesClassDescription"encoding": encoding of consumed text files."format": whether to generate format methods."incompatible-format": how to report incompatible format strings in localized
Properties
resources."localize": whether to search for localized resources.Message format method signature types."missing-key": how to report missing keys in localizedProperties
resources."name": generated class name."strategy": how to consume resources."visibility": set to "public" to generate public instead of package visible artefacts.Generates a class for loading byte data.Use this code generationHandler
to prevent misspelled keys withResourceBundle
.Handler
that, for each resource, generates a static method with a name derived from the resource name usingNamer.simplifyResourceName(String)
andNamer.nameMember(String)
.Handler
that generates message classes fromProperties
files usingLocale
s to match localized strings andMessageFormat
to create typed method signatures.Utility type for working withFiler
.