Package adams.core.logging
Class AbstractEnhancingSingleHandler
- java.lang.Object
-
- java.util.logging.Handler
-
- adams.core.logging.AbstractLogHandler
-
- adams.core.logging.AbstractEnhancingSingleHandler
-
- All Implemented Interfaces:
EnhancingSingleHandler
,Comparable<Handler>
- Direct Known Subclasses:
RemoteReceiveHandler
public abstract class AbstractEnhancingSingleHandler extends AbstractLogHandler implements EnhancingSingleHandler
Ancestor for log handlers that enhance a single handler.- Version:
- $Revision$
- Author:
- FracPete (fracpete at waikato dot ac dot nz)
-
-
Field Summary
Fields Modifier and Type Field Description protected Handler
m_Handler
the base handler.-
Fields inherited from class adams.core.logging.AbstractLogHandler
m_LoggingListeners, m_LogUsed
-
-
Constructor Summary
Constructors Constructor Description AbstractEnhancingSingleHandler()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract Handler
getDefaultHandler()
Handler
getHandler()
Returns the handler to use for outputting the log records.protected void
initialize()
Initializes the members.void
setHandler(Handler value)
Sets the handler to use for outputting the log records.-
Methods inherited from class adams.core.logging.AbstractLogHandler
addLoggingListener, close, compareTo, doPublish, equals, flush, iterator, loggingListeners, notifyLoggingListeners, postPublish, publish, removeLoggingListener, removeLoggingListeners, reset, setUp
-
Methods inherited from class java.util.logging.Handler
getEncoding, getErrorManager, getFilter, getFormatter, getLevel, isLoggable, reportError, setEncoding, setErrorManager, setFilter, setFormatter, setLevel
-
-
-
-
Field Detail
-
m_Handler
protected Handler m_Handler
the base handler.
-
-
Method Detail
-
initialize
protected void initialize()
Initializes the members.- Overrides:
initialize
in classAbstractLogHandler
-
getDefaultHandler
protected abstract Handler getDefaultHandler()
-
setHandler
public void setHandler(Handler value)
Sets the handler to use for outputting the log records.- Specified by:
setHandler
in interfaceEnhancingSingleHandler
- Parameters:
value
- the handler
-
getHandler
public Handler getHandler()
Returns the handler to use for outputting the log records.- Specified by:
getHandler
in interfaceEnhancingSingleHandler
- Returns:
- the handler
-
-