Class MessagesProvider

  • All Implemented Interfaces:
    Function<Locale,​Messages>

    public class MessagesProvider
    extends ResourceBundleProvider<Messages>
    This class provides and caches resource bundles (stemming from properties) encapsulated in Messages for various locales. This is coupled to a loading class providing the base name and the classloader (and usually also the key constants).
    • Constructor Detail

      • MessagesProvider

        public MessagesProvider​(Class<?> loadingClass)
        Constructs a new message provider for loading resource bundles (stemming from properties) for a specific locale for the designated class.
        Parameters:
        loadingClass - The class with which to load the resource bundle.