Class TranslationClassGenerator

java.lang.Object
org.jboss.logging.processor.apt.AbstractGenerator
org.jboss.logging.processor.apt.TranslationClassGenerator

@SupportedOptions({"translationFilesPath","skipTranslations"}) final class TranslationClassGenerator extends AbstractGenerator
The translation class generator.

The aim of this generator is to generate the classes corresponding to translation files of a MessageLogger or MessageBundle.

  • Field Details

    • TRANSLATION_FILES_PATH_OPTION

      public static final String TRANSLATION_FILES_PATH_OPTION
      See Also:
    • SKIP_TRANSLATIONS

      public static final String SKIP_TRANSLATIONS
      See Also:
    • TRANSLATION_FILE_EXTENSION_PATTERN

      private static final String TRANSLATION_FILE_EXTENSION_PATTERN
      The properties file pattern. The property file must match the given pattern org.pkgname.InterfaceName.i18n_locale.properties where locale is :
      • xx - where xx is the language like (e.g. en)
      • xx_YY - where xx is the language and YY is the country like (e.g. en_US)
      • xx_YY_ZZ - where xx is the language, YY is the country and ZZ is the variant like (e.g. en_US_POSIX)
      See Also:
    • translationFilesPath

      private final String translationFilesPath
    • skipTranslations

      private final boolean skipTranslations
  • Constructor Details

    • TranslationClassGenerator

      public TranslationClassGenerator(ProcessingEnvironment processingEnv)
      Construct an instance of the Translation Class Generator.
      Parameters:
      processingEnv - the processing environment
  • Method Details