Class AbstractMessageHandler

  • All Implemented Interfaces:
    MessageHandler, Handler
    Direct Known Subclasses:
    GlobalMessages

    public abstract class AbstractMessageHandler
    extends Object
    implements MessageHandler
    Standard Message handler that takes a root package, plus key and resolves that into one/more resultant messages. This Handler is used by all message types to enable flexible look and feel as well as i18n to be implemented in variable ways.
    Author:
    dhushon
    • Constructor Detail

      • AbstractMessageHandler

        public AbstractMessageHandler()
    • Method Detail

      • getInstance

        public static MessageHandler getInstance()
        forced override to allow singleton instantiation through dynamic class loader
        Returns:
        MessageHandler
        See Also:
        for sample
      • getLocale

        public static Locale getLocale()
        forced override, concrete implementations must provide implementation
        Returns:
        Locale
      • setLocale

        public static void setLocale​(Locale newLocale)
        forced override, concrete implementations must provide implementation
        Parameters:
        newLocale -