Class PropertiesFileInfo

  • All Implemented Interfaces:
    MessageInfoProvider

    public class PropertiesFileInfo
    extends Object
    implements MessageInfoProvider
    Holder of meta-information about a properties file that maps message keys to message text.
    Since:
    0.6.0
    Version:
    $Id: PropertiesFileInfo.java 16154 2012-07-14 16:34:05Z colin $
    Author:
    tlerios@marketcetera.com
    See Also:
    org.marketcetera.util.log
    • Constructor Detail

      • PropertiesFileInfo

        public PropertiesFileInfo​(I18NMessageProvider provider,
                                  Locale locale)
                           throws I18NException
        Creates a new meta-information holder for the properties file associated with the given provider and locale.
        Parameters:
        provider - The provider.
        locale - The locale. Use Locale.ROOT for the fallback properties file.
        Throws:
        I18NException - Thrown if there is an I/O error while attempting to read the properties file.
      • PropertiesFileInfo

        public PropertiesFileInfo​(I18NMessageProvider provider)
                           throws I18NException
        Creates a new meta-information holder for the fallback properties file associated with the given provider.
        Parameters:
        provider - The provider.
        Throws:
        I18NException - Thrown if there is an I/O error while attempting to read the properties file.
    • Method Detail

      • getProvider

        public I18NMessageProvider getProvider()
        Returns the receiver's message provider.
        Returns:
        The provider.
      • getLocale

        public Locale getLocale()
        Returns the receiver's locale.
        Returns:
        The locale. It is null for the fallback properties file.