public class AppenderAttachableImpl<E> extends java.lang.Object implements AppenderAttachable<E>
AppenderAttachable
interface.Constructor and Description |
---|
AppenderAttachableImpl() |
Modifier and Type | Method and Description |
---|---|
void |
addAppender(Appender<E> newAppender)
Attach an appender.
|
int |
appendLoopOnAppenders(E e)
Call the
doAppend method on all attached appenders. |
void |
detachAndStopAllAppenders()
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(java.lang.String name)
Remove the appender with the name passed as parameter form the list of
appenders.
|
Appender<E> |
getAppender(java.lang.String name)
Look for an attached appender named as
name . |
boolean |
isAttached(Appender<E> appender)
Returns
true if the specified appender is in the list of
attached appenders, false otherwise. |
java.util.Iterator<Appender<E>> |
iteratorForAppenders()
Get all attached appenders as an Enumeration.
|
public void addAppender(Appender<E> newAppender)
addAppender
in interface AppenderAttachable<E>
public int appendLoopOnAppenders(E e)
doAppend
method on all attached appenders.public java.util.Iterator<Appender<E>> iteratorForAppenders()
null
is returned.iteratorForAppenders
in interface AppenderAttachable<E>
public Appender<E> getAppender(java.lang.String name)
name
.
Return the appender with that name if in the list. Return null otherwise.
getAppender
in interface AppenderAttachable<E>
public boolean isAttached(Appender<E> appender)
true
if the specified appender is in the list of
attached appenders, false
otherwise.isAttached
in interface AppenderAttachable<E>
public void detachAndStopAllAppenders()
detachAndStopAllAppenders
in interface AppenderAttachable<E>
public boolean detachAppender(Appender<E> appender)
detachAppender
in interface AppenderAttachable<E>
public boolean detachAppender(java.lang.String name)
detachAppender
in interface AppenderAttachable<E>
Copyright © 2010 - 2020 Adobe. All Rights Reserved