COWArrayList based implementation of the AppenderAttachable
interface.
| Modifier and Type | Field and Description |
|---|---|
| private final COWArrayList |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | addAppender(Appender<E> newAppender)
Implements ch. |
| public int | |
| public void | detachAndStopAllAppenders()
Implements ch. |
| public boolean | detachAppender(Appender<E> appender)
Implements ch. |
| public boolean | detachAppender(String name)
Implements ch. |
| public Appender | getAppender(String name)
Implements ch. name.
|
| public boolean | isAttached(Appender<E> appender)
Implements ch. true if the specified appender is in the list of
attached appenders, false otherwise.
|
| public Iterator | Returns: Iterator An iterator of attached appenders.Implements ch. |
| appenderList | back to summary |
|---|---|
private final COWArrayList<Appender<E>> appenderList
| |
| AppenderAttachableImpl | back to summary |
|---|---|
| public AppenderAttachableImpl() | |
| addAppender | back to summary |
|---|---|
| public void addAppender(Appender<E> newAppender) Implements ch. Attach an appender. If the appender is already in the list in won't be added again. | |
| appendLoopOnAppenders | back to summary |
|---|---|
| public int appendLoopOnAppenders(E e) Call the | |
| detachAndStopAllAppenders | back to summary |
|---|---|
| public void detachAndStopAllAppenders() Implements ch. Remove and processPriorToRemoval all previously attached appenders. | |
| detachAppender | back to summary |
|---|---|
| public boolean detachAppender(Appender<E> appender) Implements ch. Remove the appender passed as parameter form the list of attached appenders. | |
| detachAppender | back to summary |
|---|---|
| public boolean detachAppender(String name) Implements ch. Remove the appender with the name passed as parameter form the list of appenders. | |
| getAppender | back to summary |
|---|---|
| public Appender Implements ch. Look for an attached appender named as Return the appender with that name if in the list. Return null otherwise. | |
| isAttached | back to summary |
|---|---|
| public boolean isAttached(Appender<E> appender) Implements ch. Returns
| |
| iteratorForAppenders | back to summary |
|---|---|
| public Iterator Implements ch. Get all attached appenders as an Enumeration. If there are no attached
appenders | |