Annotation Type I18NProperty


  • @Retention(RUNTIME)
    @Target(FIELD)
    public @interface I18NProperty
    This annotation can be declared on a field in which a property should be injected from a resource bundle.
    Author:
    Mahmoud Ben Hassine (mahmoud.benhassine@icloud.com)
    • Required Element Summary

      Required Elements 
      Modifier and Type Required Element Description
      String bundle
      The resource bundle containing the property to load.
      String key
      The key to load from the resource bundle.
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      String country
      The locale country to use.
      String defaultValue
      The default value to set in case the key does not exist or cannot be loaded.
      boolean failFast
      Flag to fail the configuration process if the key is absent
      String language
      The locale language to use.
      int order
      Injection order regarding other annotations.
      String variant
      The locale variant to use.
    • Element Detail

      • bundle

        String bundle
        The resource bundle containing the property to load.
        Returns:
        The resource bundle containing the property to load
      • key

        String key
        The key to load from the resource bundle.
        Returns:
        The key to load from the resource bundle
      • defaultValue

        String defaultValue
        The default value to set in case the key does not exist or cannot be loaded.
        Returns:
        the default value to set
        Default:
        ""
      • failFast

        boolean failFast
        Flag to fail the configuration process if the key is absent
        Returns:
        true if the configuration process should fail fast if the key is absent
        Default:
        false
      • language

        String language
        The locale language to use.
        Returns:
        The locale language to use
        Default:
        ""
      • country

        String country
        The locale country to use.
        Returns:
        The locale country to use
        Default:
        ""
      • variant

        String variant
        The locale variant to use.
        Returns:
        The locale variant to use
        Default:
        ""
      • order

        int order
        Injection order regarding other annotations.
        Returns:
        injection order regarding other annotations
        Default:
        0