Class MessagesProvider

java.lang.Object
de.aristaflow.adept2.util.i18n.ResourceBundleProvider<Messages>
de.aristaflow.adept2.util.i18n.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 Details

    • 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.
  • Method Details