|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.log4j.helpers.AppenderAttachableImpl
public class AppenderAttachableImpl
A straightforward implementation of the AppenderAttachable
interface.
Field Summary | |
---|---|
protected Vector |
appenderList
Array of appenders. |
Constructor Summary | |
---|---|
AppenderAttachableImpl()
|
Method Summary | |
---|---|
void |
addAppender(Appender newAppender)
Attach an appender. |
int |
appendLoopOnAppenders(LoggingEvent event)
Call the doAppend method on all attached appenders. |
Enumeration |
getAllAppenders()
Get all attached appenders as an Enumeration. |
Appender |
getAppender(String name)
Look for an attached appender named as name . |
boolean |
isAttached(Appender appender)
Returns true if the specified appender is in the
list of attached appenders, false otherwise. |
void |
removeAllAppenders()
Remove and close all previously attached appenders. |
void |
removeAppender(Appender appender)
Remove the appender passed as parameter form the list of attached appenders. |
void |
removeAppender(String name)
Remove the appender with the name passed as parameter form the list of appenders. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Vector appenderList
Constructor Detail |
---|
public AppenderAttachableImpl()
Method Detail |
---|
public void addAppender(Appender newAppender)
addAppender
in interface AppenderAttachable
public int appendLoopOnAppenders(LoggingEvent event)
doAppend
method on all attached appenders.
public Enumeration getAllAppenders()
null
is returned.
getAllAppenders
in interface AppenderAttachable
public Appender getAppender(String name)
name
.
Return the appender with that name if in the list. Return null otherwise.
getAppender
in interface AppenderAttachable
public boolean isAttached(Appender appender)
true
if the specified appender is in the
list of attached appenders, false
otherwise.
isAttached
in interface AppenderAttachable
public void removeAllAppenders()
removeAllAppenders
in interface AppenderAttachable
public void removeAppender(Appender appender)
removeAppender
in interface AppenderAttachable
public void removeAppender(String name)
removeAppender
in interface AppenderAttachable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |