|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.loom.i18n.DefaultMissingMessageHandler
@Singleton public class DefaultMissingMessageHandler
This message handler logs a list of missing keys, to make them easier to add later. The recommended behavior is to configure your log system to redirect this class output to a separate file, such as ${java.io.temp}/missing.properties. Each missing key will just be written once
Constructor Summary | |
---|---|
DefaultMissingMessageHandler()
|
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 |
protected void |
logMissingKey(java.lang.String missingKey)
Adds a missing key to the missing key respository |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultMissingMessageHandler()
Method Detail |
---|
public java.lang.String handleMissingParameter(java.lang.String missingParamName)
MissingMessageHandler
handleMissingParameter
in interface MissingMessageHandler
missingParamName
- the param that could not be found (nor any substring of it)
public java.lang.String handleMissingKey(java.lang.String missingKey)
MissingMessageHandler
handleMissingKey
in interface MissingMessageHandler
missingKey
- the key that could not be found
protected void logMissingKey(java.lang.String missingKey)
missingKey
- public java.lang.String handleMessageError(java.lang.String messageKey, java.lang.Throwable error)
MissingMessageHandler
handleMessageError
in interface MissingMessageHandler
messageKey
- the key of the message that is missing/malformed
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |