org.formproc.message
Interface MessageProvider

All Known Implementing Classes:
AbstractMessageProvider

public interface MessageProvider

Base interface which must be implemented by any class which will provide runtime messages such as error and other messages consumed be users.

Author:
Anthony Eden

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.
 

Method Detail

getMessage

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

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.

Parameters:
configuration - The Configuration object
Throws:
ConfiguratioinException
com.anthonyeden.lib.config.ConfigurationException


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