Class LoggerNameModelSupport
java.lang.Object
org.apache.log4j.chainsaw.LoggerNameModelSupport
- All Implemented Interfaces:
LoggerNameModel
An implementation of LoggerNameModel which can be used as a delegate
- Author:
- Paul Smith <psmith@apache.org>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanaddLoggerName(String loggerName) Attempts to add the loggerName to the model, and returns true if it does, i.e that the loggerName is new, otherwise it is ignored.voidReturns an unmodifiable Collection of the uniquely known LoggerNames within this model.voidvoidreset()The logger names have been cleared
-
Constructor Details
-
LoggerNameModelSupport
public LoggerNameModelSupport()
-
-
Method Details
-
getLoggerNames
Description copied from interface:LoggerNameModelReturns an unmodifiable Collection of the uniquely known LoggerNames within this model.- Specified by:
getLoggerNamesin interfaceLoggerNameModel- Returns:
- unmodifiable Collection of Logger name Strings
-
addLoggerName
Description copied from interface:LoggerNameModelAttempts to add the loggerName to the model, and returns true if it does, i.e that the loggerName is new, otherwise it is ignored.If the loggerName is new for this model, all the LoggerNameListeners are notified using this thread.
- Specified by:
addLoggerNamein interfaceLoggerNameModel- Parameters:
loggerName-
-
reset
public void reset()Description copied from interface:LoggerNameModelThe logger names have been cleared- Specified by:
resetin interfaceLoggerNameModel
-
addLoggerNameListener
- Specified by:
addLoggerNameListenerin interfaceLoggerNameModel
-
removeLoggerNameListener
- Specified by:
removeLoggerNameListenerin interfaceLoggerNameModel
-