com.zphinx.spine.resources
Class ConfigMessageProvider

java.lang.Object
  extended by org.apache.commons.i18n.ResourceBundleMessageProvider
      extended by com.zphinx.spine.resources.ConfigMessageProvider
All Implemented Interfaces:
org.apache.commons.i18n.MessageProvider

public class ConfigMessageProvider
extends org.apache.commons.i18n.ResourceBundleMessageProvider

ConfigMessageProvider serves as the default MessageProvider used within this application

Version:
$1.0

Copyright ©Zphinx Software Solutions

Author:
David Ladapo

Field Summary
(package private) static String MESSAGE_NOT_FOUND
           
 
Constructor Summary
ConfigMessageProvider(String baseName)
          Public Constructor
 
Method Summary
 Map getEntries(String id, Locale locale)
           
 String getText(String id, String entry, Locale locale)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MESSAGE_NOT_FOUND

static final String MESSAGE_NOT_FOUND
See Also:
Constant Field Values
Constructor Detail

ConfigMessageProvider

public ConfigMessageProvider(String baseName)
Public Constructor

Method Detail

getEntries

public Map getEntries(String id,
                      Locale locale)
               throws org.apache.commons.i18n.MessageNotFoundException
Specified by:
getEntries in interface org.apache.commons.i18n.MessageProvider
Overrides:
getEntries in class org.apache.commons.i18n.ResourceBundleMessageProvider
Throws:
org.apache.commons.i18n.MessageNotFoundException

getText

public String getText(String id,
                      String entry,
                      Locale locale)
Specified by:
getText in interface org.apache.commons.i18n.MessageProvider
Overrides:
getText in class org.apache.commons.i18n.ResourceBundleMessageProvider