public abstract class AbstractLogEnabled extends java.lang.Object implements LogEnabled
| Constructor and Description |
|---|
AbstractLogEnabled() |
| Modifier and Type | Method and Description |
|---|---|
void |
enableLogging(Logger logger)
Set the components logger.
|
protected Logger |
getLogger()
Helper method to allow sub-classes to aquire logger.
|
protected void |
setupLogger(java.lang.Object component)
Helper method to setup other components with same logger.
|
protected void |
setupLogger(java.lang.Object component,
Logger logger)
Helper method to setup other components with logger.
|
protected void |
setupLogger(java.lang.Object component,
java.lang.String subCategory)
Helper method to setup other components with logger.
|
public void enableLogging(Logger logger)
enableLogging in interface LogEnabledlogger - the loggerprotected final Logger getLogger()
There is no performance penalty as this is a final method and will be inlined by the JVM.
protected void setupLogger(java.lang.Object component)
component - the component to pass logger object toprotected void setupLogger(java.lang.Object component,
java.lang.String subCategory)
component - the component to pass logger object tosubCategory - the subcategory to use (may be null)protected void setupLogger(java.lang.Object component,
Logger logger)
component - the component to pass logger object tologger - the Logger