public class DefaultMessageHandler extends java.lang.Object implements IMessageHandler
SYSTEM_ERR, SYSTEM_OUT, THROW
Constructor and Description |
---|
DefaultMessageHandler() |
Modifier and Type | Method and Description |
---|---|
void |
dontIgnore(IMessage.Kind kind)
Allow fine grained configuration after initialization.
|
boolean |
handleMessage(IMessage message)
Handle message, by reporting and/or throwing an AbortException.
|
void |
ignore(IMessage.Kind kind)
Allow fine grained configuration after initialization.
|
boolean |
isIgnoring(IMessage.Kind kind)
Signal clients whether this will ignore messages of a given type.
|
public boolean handleMessage(IMessage message) throws AbortException
IMessageHandler
handleMessage
in interface IMessageHandler
message
- the IMessage to handle - never nullAbortException
- depending on handler logic.public boolean isIgnoring(IMessage.Kind kind)
IMessageHandler
isIgnoring
in interface IMessageHandler
public void dontIgnore(IMessage.Kind kind)
IMessageHandler
dontIgnore
in interface IMessageHandler
public void ignore(IMessage.Kind kind)
IMessageHandler
ignore
in interface IMessageHandler