Module uk.autores

Package uk.autores.handling


package uk.autores.handling
Use these types to extend the API.

Usage

  1. Place resource files in the appropriate place for the chosen build system.
  2. Annotate a type or package declaration with ResourceFiles.
  3. Set the resource file name in the ResourceFiles.value() array.
  4. Specify a Handler for non-default behaviour.

Resource Handlers

provided handlers
Handler Resources Configuration Description
AssertResourceExists any files (none) Default Handler that validates resources exist.
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 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.