net.sf.mmm.util.component.base
Class AbstractLoggableObject

java.lang.Object
  extended by net.sf.mmm.util.component.base.AbstractLoggableObject
Direct Known Subclasses:
AbstractCliParser, AbstractMain, AbstractNlsTemplate, JaxbBeanHolderImpl

public abstract class AbstractLoggableObject
extends Object

This is the abstract base class for any object that is no component but needs a logger.

Since:
2.0.0
Author:
Joerg Hohwiller (hohwille at users.sourceforge.net)

Field Summary
private  org.slf4j.Logger logger
           
 
Constructor Summary
AbstractLoggableObject()
          The constructor.
AbstractLoggableObject(org.slf4j.Logger logger)
          The constructor.
 
Method Summary
protected  org.slf4j.Logger getLogger()
          This method gets the logger for this object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

private final org.slf4j.Logger logger
See Also:
getLogger()
Constructor Detail

AbstractLoggableObject

public AbstractLoggableObject()
The constructor.


AbstractLoggableObject

public AbstractLoggableObject(org.slf4j.Logger logger)
The constructor.

Parameters:
logger - is the logger.
Method Detail

getLogger

protected org.slf4j.Logger getLogger()
This method gets the logger for this object.
This method is NOT public because the logger should only be used by the component itself and NOT externally.

Returns:
the logger to be used by this object.


Copyright © 2001-2010 mmm-Team. All Rights Reserved.