net.sourceforge.domian.util.slf4j
Class AbstractLoggingObject

java.lang.Object
  extended by net.sourceforge.domian.util.slf4j.AbstractLoggingObject
Direct Known Subclasses:
Task

public abstract class AbstractLoggingObject
extends java.lang.Object

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
           
 
Constructor Summary
AbstractLoggingObject()
           
 
Method Summary
private  org.slf4j.Logger createAndCacheLogger()
           
protected  org.slf4j.Logger getLogger()
          Lazily retrieval of the Logger member.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

private transient volatile org.slf4j.Logger logger
Constructor Detail

AbstractLoggingObject

public AbstractLoggingObject()
Method Detail

createAndCacheLogger

private org.slf4j.Logger createAndCacheLogger()

getLogger

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

Returns:
the logger member for this entity


Copyright © 2006-2009. All Rights Reserved.