net.sf.mmm.util.component.base
Class AbstractLoggableObject
java.lang.Object
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
|
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 |
logger
private final org.slf4j.Logger logger
- See Also:
getLogger()
AbstractLoggableObject
public AbstractLoggableObject()
- The constructor.
AbstractLoggableObject
public AbstractLoggableObject(org.slf4j.Logger logger)
- The constructor.
- Parameters:
logger
- is the logger
.
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.