vishnu.logging
Class LoggerImpl<M>

java.lang.Object
  extended by vishnu.logging.LoggerImpl<M>
All Implemented Interfaces:
Logger<M>

public class LoggerImpl<M>
extends java.lang.Object
implements Logger<M>

 

Constructor Summary
LoggerImpl()
           
 
Method Summary
 void add(M o)
          Adds @param m to this manager.
 java.util.Collection<M> all()
          Returns every managed object by this manager.
protected  boolean isAtEnd()
           
 M last()
          Returns the last managed object added to this manager.
protected  java.util.List<M> managedsAsList()
           
protected  M readManaged()
           
protected  void readManageds()
           
 void reset()
          alters this manager leaving it as new (whitout managed instances).
protected  void seekLast()
           
protected  void seekLastSize()
           
protected  void start()
           
 void stop()
          stops this manager.
 void update(M o)
          Updates m in this manager.
protected  void write(M o)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LoggerImpl

public LoggerImpl()
Method Detail

start

protected void start()

managedsAsList

protected java.util.List<M> managedsAsList()

all

public java.util.Collection<M> all()
Description copied from interface: Logger
Returns every managed object by this manager.

Specified by:
all in interface Logger<M>

last

public M last()
Description copied from interface: Logger
Returns the last managed object added to this manager.

Specified by:
last in interface Logger<M>

readManageds

protected void readManageds()

readManaged

protected M readManaged()

add

public void add(M o)
Description copied from interface: Logger
Adds @param m to this manager.

Specified by:
add in interface Logger<M>

write

protected void write(M o)

update

public void update(M o)
Description copied from interface: Logger
Updates m in this manager.

Specified by:
update in interface Logger<M>

isAtEnd

protected boolean isAtEnd()

seekLast

protected void seekLast()

seekLastSize

protected void seekLastSize()

stop

public void stop()
Description copied from interface: Logger
stops this manager. No further operation will be accepted over this manager.

Specified by:
stop in interface Logger<M>

reset

public void reset()
Description copied from interface: Logger
alters this manager leaving it as new (whitout managed instances).

Specified by:
reset in interface Logger<M>