PTLog API - 1.0

jp.ne.dti.lares.foozy.ptlog
Class NullLogServer

java.lang.Object
  extended byjp.ne.dti.lares.foozy.ptlog.LogServer
      extended byjp.ne.dti.lares.foozy.ptlog.NullLogServer

public class NullLogServer
extends LogServer

Concretization of "LogServer" to do nothing.

See Also:
EffectiveLogServer

Field Summary
static NullLogServer INSTANCE
          For convenience access to instance of this class.
 
Constructor Summary
protected NullLogServer()
          Constructor.
 
Method Summary
protected  void addServee_(LogServee servee)
          Does nothing.
 LogContext getContext(java.lang.Object subject)
          Return NullLogContext always.
protected  java.util.Iterator getServees()
          Return empty iterator always.
protected  void removeServee_(LogServee servee)
          Does nothing.
 
Methods inherited from class jp.ne.dti.lares.foozy.ptlog.LogServer
addServee, fireReconfigure, getSubjectName, removeServee
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSTANCE

public static final NullLogServer INSTANCE
For convenience access to instance of this class.

Constructor Detail

NullLogServer

protected NullLogServer()
Constructor.

Please use INSTANCE instead of construction for resource efficiency.

Method Detail

getContext

public LogContext getContext(java.lang.Object subject)
Return NullLogContext always.

Specified by:
getContext in class LogServer
Parameters:
subject - of logging request.
Returns:
context for specified subject.

addServee_

protected void addServee_(LogServee servee)
Does nothing.

Specified by:
addServee_ in class LogServer
Parameters:
servee - to be served by this.
See Also:
LogServer.addServee(jp.ne.dti.lares.foozy.ptlog.LogServee)

removeServee_

protected void removeServee_(LogServee servee)
Does nothing.

Specified by:
removeServee_ in class LogServer
Parameters:
servee - to be served by this.
See Also:
LogServer.removeServee(jp.ne.dti.lares.foozy.ptlog.LogServee)

getServees

protected java.util.Iterator getServees()
Return empty iterator always.

Specified by:
getServees in class LogServer
Returns:
iterator of registered servees.
See Also:
LogServer.fireReconfigure(), SafeList

PTLog API - 1.0