org.formproc.message
Class ResourceBundleMessageProvider

java.lang.Object
  |
  +--org.formproc.message.AbstractMessageProvider
        |
        +--org.formproc.message.ResourceBundleMessageProvider
All Implemented Interfaces:
MessageProvider

public class ResourceBundleMessageProvider
extends AbstractMessageProvider

Implementation of the MessageProvider interface which uses the Java ResourceBundle class to locate messages in resource bundles.

Author:
Anthony Eden

Constructor Summary
ResourceBundleMessageProvider()
           
 
Method Summary
 java.lang.String getMessage(java.util.Locale locale)
          Get the message for the given locale.
 void loadConfiguration(com.anthonyeden.lib.config.Configuration configuration)
          Load the message provider's configuration.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourceBundleMessageProvider

public ResourceBundleMessageProvider()
Method Detail

getMessage

public java.lang.String getMessage(java.util.Locale locale)
                            throws java.lang.Exception
Get the message for the given locale.

Specified by:
getMessage in interface MessageProvider
Specified by:
getMessage in class AbstractMessageProvider
Parameters:
locale - The Locale
Returns:
The message
Throws:
java.lang.Exception

loadConfiguration

public void loadConfiguration(com.anthonyeden.lib.config.Configuration configuration)
                       throws com.anthonyeden.lib.config.ConfigurationException
Load the message provider's configuration.

Specified by:
loadConfiguration in interface MessageProvider
Overrides:
loadConfiguration in class AbstractMessageProvider
Parameters:
configuration - The Configuration object
Throws:
ConfiguratioinException
com.anthonyeden.lib.config.ConfigurationException


Copyright (c) 2001-2003 Anthony Eden. All Rights Reserved.