Package org.pentaho.di.i18n
Class AbstractMessageHandler
- java.lang.Object
-
- org.pentaho.di.i18n.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 Summary
Constructors Constructor Description AbstractMessageHandler()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static MessageHandler
getInstance()
forced override to allow singleton instantiation through dynamic class loaderstatic Locale
getLocale()
forced override, concrete implementations must provide implementationstatic void
setLocale(Locale newLocale)
forced override, concrete implementations must provide implementation-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.pentaho.di.i18n.MessageHandler
getString, getString, getString, getString
-
-
-
-
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
-
-
-