kiwi.util
Class NullLoggingEndpoint

java.lang.Object
  extended bykiwi.util.NullLoggingEndpoint
All Implemented Interfaces:
LoggingEndpoint

public class NullLoggingEndpoint
extends java.lang.Object
implements LoggingEndpoint

An implementation of LoggingEndpoint that serves as a "bit bucket," discarding all messages.

Author:
Mark Lindner, PING Software Group

Field Summary
 
Fields inherited from interface kiwi.util.LoggingEndpoint
ERROR, INFO, STATUS, WARNING
 
Constructor Summary
NullLoggingEndpoint()
          Construct a new NullLoggingEndpoint.
 
Method Summary
 void close()
          Close the logging endpoint.
 void logMessage(int type, java.lang.String s)
          Accept (and discard) a message.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NullLoggingEndpoint

public NullLoggingEndpoint()
Construct a new NullLoggingEndpoint.

Method Detail

logMessage

public void logMessage(int type,
                       java.lang.String s)
Accept (and discard) a message. This method is effectively a no-op.

Specified by:
logMessage in interface LoggingEndpoint
Parameters:
type - The message type; one of the static constants defined above.
s - The message.

close

public void close()
Close the logging endpoint. This method is effectively a no-op.

Specified by:
close in interface LoggingEndpoint