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 InputStreams. |
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
Propertiesresources."localize": whether to search for localized resources.Message format method signature types."missing-key": how to report missing keys in localizedPropertiesresources."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 generationHandlerto prevent misspelled keys withResourceBundle.Handlerthat, for each resource, generates a static method with a name derived from the resource name usingNamer.simplifyResourceName(String)andNamer.nameMember(String).Handlerthat generates message classes fromPropertiesfiles usingLocales to match localized strings andMessageFormatto create typed method signatures.Utility type for working withFiler.