org.loom.i18n
Interface MissingMessageHandler

All Known Implementing Classes:
DefaultMissingMessageHandler

public interface MissingMessageHandler

The strategy that decides what to do with missing strings


Method Summary
 java.lang.String handleMessageError(java.lang.String messageKey, java.lang.Throwable error)
          Decides what to do with missing/malformed message keys
 java.lang.String handleMissingKey(java.lang.String missingKey)
          Decides what to do with missing keys
 java.lang.String handleMissingParameter(java.lang.String missingParamName)
          Decides what to do with missing parameters
 

Method Detail

handleMissingKey

java.lang.String handleMissingKey(java.lang.String missingKey)
Decides what to do with missing keys

Parameters:
missingKey - the key that could not be found
Returns:
The substitution value. Could also decide to throw an exception instead

handleMissingParameter

java.lang.String handleMissingParameter(java.lang.String missingParamName)
Decides what to do with missing parameters

Parameters:
missingParamName - the param that could not be found (nor any substring of it)
Returns:
The substitution value. Could also decide to throw an exception instead

handleMessageError

java.lang.String handleMessageError(java.lang.String messageKey,
                                    java.lang.Throwable error)
Decides what to do with missing/malformed message keys

Parameters:
messageKey - the key of the message that is missing/malformed
Returns:
The substitution value. Could also decide to throw an exception isntead of returning anything