net.sourceforge.domian.entity
Class AbstractLoggingUUIDEntity

java.lang.Object
  extended by net.sourceforge.domian.entity.AbstractEntity
      extended by net.sourceforge.domian.entity.AbstractUUIDEntity
          extended by net.sourceforge.domian.entity.AbstractLoggingUUIDEntity
All Implemented Interfaces:
Entity

public abstract class AbstractLoggingUUIDEntity
extends AbstractUUIDEntity

A SLF4J logger instance is provided in this class. It is lazily obtained through the getLogger() method.

Since:
0.4.1
Author:
Eirik Torske
See Also:
SLF4J (Simple Logging Facade for Java)

Field Summary
private  org.slf4j.Logger logger
           
 
Fields inherited from class net.sourceforge.domian.entity.AbstractUUIDEntity
entityId
 
Fields inherited from class net.sourceforge.domian.entity.AbstractEntity
timeOfCreation, version
 
Constructor Summary
AbstractLoggingUUIDEntity()
           
 
Method Summary
private  org.slf4j.Logger createLogger()
           
protected  void doWarnLog(java.lang.String message)
           
protected  org.slf4j.Logger getLogger()
          Lazy retrieval of the Logger member.
 
Methods inherited from class net.sourceforge.domian.entity.AbstractUUIDEntity
getEntityId
 
Methods inherited from class net.sourceforge.domian.entity.AbstractEntity
equals, getTimeOfCreation, getVersion, hashCode, isEntity, isValueObject, setVersion, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

logger

private transient volatile org.slf4j.Logger logger
Constructor Detail

AbstractLoggingUUIDEntity

public AbstractLoggingUUIDEntity()
Method Detail

createLogger

private org.slf4j.Logger createLogger()

getLogger

protected final org.slf4j.Logger getLogger()
Lazy retrieval of the Logger member.

Returns:
the logger member for this entity

doWarnLog

protected final void doWarnLog(java.lang.String message)
Overrides:
doWarnLog in class AbstractEntity


Copyright © 2006-2010. All Rights Reserved.