Class I18nInitializer

    • Field Detail

      • encoding

        protected Charset encoding
        Encoding used to load i18n bundles.
        Since:
        2.4
      • messageFormatter

        protected I18nMessageFormatter messageFormatter
        Message formatter used in I18n to produce final translated messages.
        Since:
        2.4
      • missingKeyReturnNull

        protected boolean missingKeyReturnNull
        Used to know if the I18nLanguage has to return null when a key is not found.
        Since:
        2.4.1
    • Constructor Detail

      • I18nInitializer

        protected I18nInitializer()
    • Method Detail

      • resolvBundles

        public abstract I18nBundle[] resolvBundles()
                                            throws Exception
        Resolv the bundles.
        Returns:
        the bundles detected
        Throws:
        Exception - if any pb while getting bundles
      • getEncoding

        public Charset getEncoding()
        Get the Charset encoding used for i18n Properties file loading.
        Returns:
        encoding to use
        Since:
        2.4
      • setMessageFormatter

        public void setMessageFormatter​(I18nMessageFormatter messageFormatter)
                                 throws NullPointerException
        Set messageFormatter to use on each i18n message translation.
        Parameters:
        messageFormatter - I18nMessageFormatter to use
        Throws:
        NullPointerException - if messageFormatter is null
        Since:
        2.4
      • isMissingKeyReturnNull

        public boolean isMissingKeyReturnNull()
        Get the missingKeyReturnNull to use on missing key
        Returns:
        the missingKeyReturnNull parameter
        Since:
        2.4.1
      • setMissingKeyReturnNull

        public void setMissingKeyReturnNull​(boolean missingKeyReturnNull)
        Get the missingKeyReturnNull to use on missing key
        Parameters:
        missingKeyReturnNull - missingKeyReturnNull to use
        Since:
        2.4.1