java.lang.Object
ch.qos.logback.core.spi.AppenderAttachableImpl<E>
- All Implemented Interfaces:
AppenderAttachable<E>
A
COWArrayList
based implementation of the AppenderAttachable
interface.- Author:
- Ceki Gülcü
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addAppender
(Appender<E> newAppender) Attach an appender.int
Call thedoAppend
method on all attached appenders.void
Remove and processPriorToRemoval all previously attached appenders.boolean
detachAppender
(Appender<E> appender) Remove the appender passed as parameter form the list of attached appenders.boolean
detachAppender
(String name) Remove the appender with the name passed as parameter form the list of appenders.getAppender
(String name) Look for an attached appender named asname
.boolean
isAttached
(Appender<E> appender) Returnstrue
if the specified appender is in the list of attached appenders,false
otherwise.Get all attached appenders as an Enumeration.
-
Constructor Details
-
AppenderAttachableImpl
public AppenderAttachableImpl()
-
-
Method Details
-
addAppender
Attach an appender. If the appender is already in the list in won't be added again.- Specified by:
addAppender
in interfaceAppenderAttachable<E>
-
appendLoopOnAppenders
Call thedoAppend
method on all attached appenders. -
iteratorForAppenders
Get all attached appenders as an Enumeration. If there are no attached appendersnull
is returned.- Specified by:
iteratorForAppenders
in interfaceAppenderAttachable<E>
- Returns:
- Iterator An iterator of attached appenders.
-
getAppender
Look for an attached appender named asname
.Return the appender with that name if in the list. Return null otherwise.
- Specified by:
getAppender
in interfaceAppenderAttachable<E>
-
isAttached
Returnstrue
if the specified appender is in the list of attached appenders,false
otherwise.- Specified by:
isAttached
in interfaceAppenderAttachable<E>
- Since:
- 1.2
-
detachAndStopAllAppenders
Remove and processPriorToRemoval all previously attached appenders.- Specified by:
detachAndStopAllAppenders
in interfaceAppenderAttachable<E>
-
detachAppender
Remove the appender passed as parameter form the list of attached appenders.- Specified by:
detachAppender
in interfaceAppenderAttachable<E>
-
detachAppender
Remove the appender with the name passed as parameter form the list of appenders.- Specified by:
detachAppender
in interfaceAppenderAttachable<E>
-