PageRenderTime 57ms CodeModel.GetById 22ms RepoModel.GetById 1ms app.codeStats 0ms

/apache-log4j-1.2.17/site/apidocs/org/apache/log4j/helpers/AppenderAttachableImpl.html

#
HTML | 492 lines | 417 code | 51 blank | 24 comment | 0 complexity | 32956429a843ba1430dd5d6fff17804a MD5 | raw file
Possible License(s): Apache-2.0
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  2. <!--NewPage-->
  3. <HTML>
  4. <HEAD>
  5. <!-- Generated by javadoc (build 1.6.0_23) -->
  6. <META http-equiv="Content-Type" content="text/html; charset=UTF-8">
  7. <TITLE>
  8. AppenderAttachableImpl (Apache Log4j 1.2.17 API)
  9. </TITLE>
  10. <META NAME="date" CONTENT="2012-05-06">
  11. <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style">
  12. <SCRIPT type="text/javascript">
  13. function windowTitle()
  14. {
  15. if (location.href.indexOf('is-external=true') == -1) {
  16. parent.document.title="AppenderAttachableImpl (Apache Log4j 1.2.17 API)";
  17. }
  18. }
  19. </SCRIPT>
  20. <NOSCRIPT>
  21. </NOSCRIPT>
  22. </HEAD>
  23. <BODY BGCOLOR="white" onload="windowTitle();">
  24. <HR>
  25. <!-- ========= START OF TOP NAVBAR ======= -->
  26. <A NAME="navbar_top"><!-- --></A>
  27. <A HREF="#skip-navbar_top" title="Skip navigation links"></A>
  28. <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
  29. <TR>
  30. <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
  31. <A NAME="navbar_top_firstrow"><!-- --></A>
  32. <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
  33. <TR ALIGN="center" VALIGN="top">
  34. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
  35. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  36. <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  37. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/AppenderAttachableImpl.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
  38. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  39. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  40. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  41. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  42. </TR>
  43. </TABLE>
  44. </TD>
  45. <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
  46. </EM>
  47. </TD>
  48. </TR>
  49. <TR>
  50. <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  51. &nbsp;<A HREF="../../../../org/apache/log4j/helpers/AbsoluteTimeDateFormat.html" title="class in org.apache.log4j.helpers"><B>PREV CLASS</B></A>&nbsp;
  52. &nbsp;<A HREF="../../../../org/apache/log4j/helpers/BoundedFIFO.html" title="class in org.apache.log4j.helpers"><B>NEXT CLASS</B></A></FONT></TD>
  53. <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  54. <A HREF="../../../../index.html?org/apache/log4j/helpers/AppenderAttachableImpl.html" target="_top"><B>FRAMES</B></A> &nbsp;
  55. &nbsp;<A HREF="AppenderAttachableImpl.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
  56. &nbsp;<SCRIPT type="text/javascript">
  57. <!--
  58. if(window==top) {
  59. document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
  60. }
  61. //-->
  62. </SCRIPT>
  63. <NOSCRIPT>
  64. <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
  65. </NOSCRIPT>
  66. </FONT></TD>
  67. </TR>
  68. <TR>
  69. <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  70. SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
  71. <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  72. DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
  73. </TR>
  74. </TABLE>
  75. <A NAME="skip-navbar_top"></A>
  76. <!-- ========= END OF TOP NAVBAR ========= -->
  77. <HR>
  78. <!-- ======== START OF CLASS DATA ======== -->
  79. <H2>
  80. <FONT SIZE="-1">
  81. org.apache.log4j.helpers</FONT>
  82. <BR>
  83. Class AppenderAttachableImpl</H2>
  84. <PRE>
  85. <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</A>
  86. <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><B>org.apache.log4j.helpers.AppenderAttachableImpl</B>
  87. </PRE>
  88. <DL>
  89. <DT><B>All Implemented Interfaces:</B> <DD><A HREF="../../../../org/apache/log4j/spi/AppenderAttachable.html" title="interface in org.apache.log4j.spi">AppenderAttachable</A></DD>
  90. </DL>
  91. <HR>
  92. <DL>
  93. <DT><PRE>public class <B>AppenderAttachableImpl</B><DT>extends <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A><DT>implements <A HREF="../../../../org/apache/log4j/spi/AppenderAttachable.html" title="interface in org.apache.log4j.spi">AppenderAttachable</A></DL>
  94. </PRE>
  95. <P>
  96. A straightforward implementation of the <A HREF="../../../../org/apache/log4j/spi/AppenderAttachable.html" title="interface in org.apache.log4j.spi"><CODE>AppenderAttachable</CODE></A>
  97. interface.
  98. <P>
  99. <P>
  100. <DL>
  101. <DT><B>Since:</B></DT>
  102. <DD>version 0.9.1</DD>
  103. <DT><B>Author:</B></DT>
  104. <DD>Ceki G&uuml;lc&uuml;</DD>
  105. </DL>
  106. <HR>
  107. <P>
  108. <!-- =========== FIELD SUMMARY =========== -->
  109. <A NAME="field_summary"><!-- --></A>
  110. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  111. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  112. <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
  113. <B>Field Summary</B></FONT></TH>
  114. </TR>
  115. <TR BGCOLOR="white" CLASS="TableRowColor">
  116. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  117. <CODE>protected &nbsp;<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/util/Vector.html?is-external=true" title="class or interface in java.util">Vector</A></CODE></FONT></TD>
  118. <TD><CODE><B><A HREF="../../../../org/apache/log4j/helpers/AppenderAttachableImpl.html#appenderList">appenderList</A></B></CODE>
  119. <BR>
  120. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Array of appenders.</TD>
  121. </TR>
  122. </TABLE>
  123. &nbsp;
  124. <!-- ======== CONSTRUCTOR SUMMARY ======== -->
  125. <A NAME="constructor_summary"><!-- --></A>
  126. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  127. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  128. <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
  129. <B>Constructor Summary</B></FONT></TH>
  130. </TR>
  131. <TR BGCOLOR="white" CLASS="TableRowColor">
  132. <TD><CODE><B><A HREF="../../../../org/apache/log4j/helpers/AppenderAttachableImpl.html#AppenderAttachableImpl()">AppenderAttachableImpl</A></B>()</CODE>
  133. <BR>
  134. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  135. </TR>
  136. </TABLE>
  137. &nbsp;
  138. <!-- ========== METHOD SUMMARY =========== -->
  139. <A NAME="method_summary"><!-- --></A>
  140. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  141. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  142. <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
  143. <B>Method Summary</B></FONT></TH>
  144. </TR>
  145. <TR BGCOLOR="white" CLASS="TableRowColor">
  146. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  147. <CODE>&nbsp;void</CODE></FONT></TD>
  148. <TD><CODE><B><A HREF="../../../../org/apache/log4j/helpers/AppenderAttachableImpl.html#addAppender(org.apache.log4j.Appender)">addAppender</A></B>(<A HREF="../../../../org/apache/log4j/Appender.html" title="interface in org.apache.log4j">Appender</A>&nbsp;newAppender)</CODE>
  149. <BR>
  150. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Attach an appender.</TD>
  151. </TR>
  152. <TR BGCOLOR="white" CLASS="TableRowColor">
  153. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  154. <CODE>&nbsp;int</CODE></FONT></TD>
  155. <TD><CODE><B><A HREF="../../../../org/apache/log4j/helpers/AppenderAttachableImpl.html#appendLoopOnAppenders(org.apache.log4j.spi.LoggingEvent)">appendLoopOnAppenders</A></B>(<A HREF="../../../../org/apache/log4j/spi/LoggingEvent.html" title="class in org.apache.log4j.spi">LoggingEvent</A>&nbsp;event)</CODE>
  156. <BR>
  157. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Call the <code>doAppend</code> method on all attached appenders.</TD>
  158. </TR>
  159. <TR BGCOLOR="white" CLASS="TableRowColor">
  160. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  161. <CODE>&nbsp;<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/util/Enumeration.html?is-external=true" title="class or interface in java.util">Enumeration</A></CODE></FONT></TD>
  162. <TD><CODE><B><A HREF="../../../../org/apache/log4j/helpers/AppenderAttachableImpl.html#getAllAppenders()">getAllAppenders</A></B>()</CODE>
  163. <BR>
  164. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get all attached appenders as an Enumeration.</TD>
  165. </TR>
  166. <TR BGCOLOR="white" CLASS="TableRowColor">
  167. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  168. <CODE>&nbsp;<A HREF="../../../../org/apache/log4j/Appender.html" title="interface in org.apache.log4j">Appender</A></CODE></FONT></TD>
  169. <TD><CODE><B><A HREF="../../../../org/apache/log4j/helpers/AppenderAttachableImpl.html#getAppender(java.lang.String)">getAppender</A></B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;name)</CODE>
  170. <BR>
  171. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Look for an attached appender named as <code>name</code>.</TD>
  172. </TR>
  173. <TR BGCOLOR="white" CLASS="TableRowColor">
  174. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  175. <CODE>&nbsp;boolean</CODE></FONT></TD>
  176. <TD><CODE><B><A HREF="../../../../org/apache/log4j/helpers/AppenderAttachableImpl.html#isAttached(org.apache.log4j.Appender)">isAttached</A></B>(<A HREF="../../../../org/apache/log4j/Appender.html" title="interface in org.apache.log4j">Appender</A>&nbsp;appender)</CODE>
  177. <BR>
  178. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns <code>true</code> if the specified appender is in the
  179. list of attached appenders, <code>false</code> otherwise.</TD>
  180. </TR>
  181. <TR BGCOLOR="white" CLASS="TableRowColor">
  182. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  183. <CODE>&nbsp;void</CODE></FONT></TD>
  184. <TD><CODE><B><A HREF="../../../../org/apache/log4j/helpers/AppenderAttachableImpl.html#removeAllAppenders()">removeAllAppenders</A></B>()</CODE>
  185. <BR>
  186. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Remove and close all previously attached appenders.</TD>
  187. </TR>
  188. <TR BGCOLOR="white" CLASS="TableRowColor">
  189. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  190. <CODE>&nbsp;void</CODE></FONT></TD>
  191. <TD><CODE><B><A HREF="../../../../org/apache/log4j/helpers/AppenderAttachableImpl.html#removeAppender(org.apache.log4j.Appender)">removeAppender</A></B>(<A HREF="../../../../org/apache/log4j/Appender.html" title="interface in org.apache.log4j">Appender</A>&nbsp;appender)</CODE>
  192. <BR>
  193. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Remove the appender passed as parameter form the list of attached
  194. appenders.</TD>
  195. </TR>
  196. <TR BGCOLOR="white" CLASS="TableRowColor">
  197. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  198. <CODE>&nbsp;void</CODE></FONT></TD>
  199. <TD><CODE><B><A HREF="../../../../org/apache/log4j/helpers/AppenderAttachableImpl.html#removeAppender(java.lang.String)">removeAppender</A></B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;name)</CODE>
  200. <BR>
  201. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Remove the appender with the name passed as parameter form the
  202. list of appenders.</TD>
  203. </TR>
  204. </TABLE>
  205. &nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
  206. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  207. <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
  208. <TH ALIGN="left"><B>Methods inherited from class java.lang.<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A></B></TH>
  209. </TR>
  210. <TR BGCOLOR="white" CLASS="TableRowColor">
  211. <TD><CODE><A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html?is-external=true#clone()" title="class or interface in java.lang">clone</A>, <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html?is-external=true#equals(java.lang.Object)" title="class or interface in java.lang">equals</A>, <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html?is-external=true#finalize()" title="class or interface in java.lang">finalize</A>, <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html?is-external=true#getClass()" title="class or interface in java.lang">getClass</A>, <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html?is-external=true#hashCode()" title="class or interface in java.lang">hashCode</A>, <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html?is-external=true#notify()" title="class or interface in java.lang">notify</A>, <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html?is-external=true#notifyAll()" title="class or interface in java.lang">notifyAll</A>, <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html?is-external=true#toString()" title="class or interface in java.lang">toString</A>, <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html?is-external=true#wait()" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html?is-external=true#wait(long)" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html?is-external=true#wait(long, int)" title="class or interface in java.lang">wait</A></CODE></TD>
  212. </TR>
  213. </TABLE>
  214. &nbsp;
  215. <P>
  216. <!-- ============ FIELD DETAIL =========== -->
  217. <A NAME="field_detail"><!-- --></A>
  218. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  219. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  220. <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
  221. <B>Field Detail</B></FONT></TH>
  222. </TR>
  223. </TABLE>
  224. <A NAME="appenderList"><!-- --></A><H3>
  225. appenderList</H3>
  226. <PRE>
  227. protected <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/util/Vector.html?is-external=true" title="class or interface in java.util">Vector</A> <B>appenderList</B></PRE>
  228. <DL>
  229. <DD>Array of appenders.
  230. <P>
  231. <DL>
  232. </DL>
  233. </DL>
  234. <!-- ========= CONSTRUCTOR DETAIL ======== -->
  235. <A NAME="constructor_detail"><!-- --></A>
  236. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  237. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  238. <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
  239. <B>Constructor Detail</B></FONT></TH>
  240. </TR>
  241. </TABLE>
  242. <A NAME="AppenderAttachableImpl()"><!-- --></A><H3>
  243. AppenderAttachableImpl</H3>
  244. <PRE>
  245. public <B>AppenderAttachableImpl</B>()</PRE>
  246. <DL>
  247. </DL>
  248. <!-- ============ METHOD DETAIL ========== -->
  249. <A NAME="method_detail"><!-- --></A>
  250. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  251. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  252. <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
  253. <B>Method Detail</B></FONT></TH>
  254. </TR>
  255. </TABLE>
  256. <A NAME="addAppender(org.apache.log4j.Appender)"><!-- --></A><H3>
  257. addAppender</H3>
  258. <PRE>
  259. public void <B>addAppender</B>(<A HREF="../../../../org/apache/log4j/Appender.html" title="interface in org.apache.log4j">Appender</A>&nbsp;newAppender)</PRE>
  260. <DL>
  261. <DD>Attach an appender. If the appender is already in the list in
  262. won't be added again.
  263. <P>
  264. <DD><DL>
  265. <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/apache/log4j/spi/AppenderAttachable.html#addAppender(org.apache.log4j.Appender)">addAppender</A></CODE> in interface <CODE><A HREF="../../../../org/apache/log4j/spi/AppenderAttachable.html" title="interface in org.apache.log4j.spi">AppenderAttachable</A></CODE></DL>
  266. </DD>
  267. <DD><DL>
  268. </DL>
  269. </DD>
  270. </DL>
  271. <HR>
  272. <A NAME="appendLoopOnAppenders(org.apache.log4j.spi.LoggingEvent)"><!-- --></A><H3>
  273. appendLoopOnAppenders</H3>
  274. <PRE>
  275. public int <B>appendLoopOnAppenders</B>(<A HREF="../../../../org/apache/log4j/spi/LoggingEvent.html" title="class in org.apache.log4j.spi">LoggingEvent</A>&nbsp;event)</PRE>
  276. <DL>
  277. <DD>Call the <code>doAppend</code> method on all attached appenders.
  278. <P>
  279. <DD><DL>
  280. </DL>
  281. </DD>
  282. <DD><DL>
  283. </DL>
  284. </DD>
  285. </DL>
  286. <HR>
  287. <A NAME="getAllAppenders()"><!-- --></A><H3>
  288. getAllAppenders</H3>
  289. <PRE>
  290. public <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/util/Enumeration.html?is-external=true" title="class or interface in java.util">Enumeration</A> <B>getAllAppenders</B>()</PRE>
  291. <DL>
  292. <DD>Get all attached appenders as an Enumeration. If there are no
  293. attached appenders <code>null</code> is returned.
  294. <P>
  295. <DD><DL>
  296. <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/apache/log4j/spi/AppenderAttachable.html#getAllAppenders()">getAllAppenders</A></CODE> in interface <CODE><A HREF="../../../../org/apache/log4j/spi/AppenderAttachable.html" title="interface in org.apache.log4j.spi">AppenderAttachable</A></CODE></DL>
  297. </DD>
  298. <DD><DL>
  299. <DT><B>Returns:</B><DD>Enumeration An enumeration of attached appenders.</DL>
  300. </DD>
  301. </DL>
  302. <HR>
  303. <A NAME="getAppender(java.lang.String)"><!-- --></A><H3>
  304. getAppender</H3>
  305. <PRE>
  306. public <A HREF="../../../../org/apache/log4j/Appender.html" title="interface in org.apache.log4j">Appender</A> <B>getAppender</B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;name)</PRE>
  307. <DL>
  308. <DD>Look for an attached appender named as <code>name</code>.
  309. <p>Return the appender with that name if in the list. Return null
  310. otherwise.
  311. <P>
  312. <DD><DL>
  313. <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/apache/log4j/spi/AppenderAttachable.html#getAppender(java.lang.String)">getAppender</A></CODE> in interface <CODE><A HREF="../../../../org/apache/log4j/spi/AppenderAttachable.html" title="interface in org.apache.log4j.spi">AppenderAttachable</A></CODE></DL>
  314. </DD>
  315. <DD><DL>
  316. </DL>
  317. </DD>
  318. </DL>
  319. <HR>
  320. <A NAME="isAttached(org.apache.log4j.Appender)"><!-- --></A><H3>
  321. isAttached</H3>
  322. <PRE>
  323. public boolean <B>isAttached</B>(<A HREF="../../../../org/apache/log4j/Appender.html" title="interface in org.apache.log4j">Appender</A>&nbsp;appender)</PRE>
  324. <DL>
  325. <DD>Returns <code>true</code> if the specified appender is in the
  326. list of attached appenders, <code>false</code> otherwise.
  327. <P>
  328. <DD><DL>
  329. <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/apache/log4j/spi/AppenderAttachable.html#isAttached(org.apache.log4j.Appender)">isAttached</A></CODE> in interface <CODE><A HREF="../../../../org/apache/log4j/spi/AppenderAttachable.html" title="interface in org.apache.log4j.spi">AppenderAttachable</A></CODE></DL>
  330. </DD>
  331. <DD><DL>
  332. <DT><B>Since:</B></DT>
  333. <DD>1.2</DD>
  334. </DL>
  335. </DD>
  336. </DL>
  337. <HR>
  338. <A NAME="removeAllAppenders()"><!-- --></A><H3>
  339. removeAllAppenders</H3>
  340. <PRE>
  341. public void <B>removeAllAppenders</B>()</PRE>
  342. <DL>
  343. <DD>Remove and close all previously attached appenders.
  344. <P>
  345. <DD><DL>
  346. <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/apache/log4j/spi/AppenderAttachable.html#removeAllAppenders()">removeAllAppenders</A></CODE> in interface <CODE><A HREF="../../../../org/apache/log4j/spi/AppenderAttachable.html" title="interface in org.apache.log4j.spi">AppenderAttachable</A></CODE></DL>
  347. </DD>
  348. <DD><DL>
  349. </DL>
  350. </DD>
  351. </DL>
  352. <HR>
  353. <A NAME="removeAppender(org.apache.log4j.Appender)"><!-- --></A><H3>
  354. removeAppender</H3>
  355. <PRE>
  356. public void <B>removeAppender</B>(<A HREF="../../../../org/apache/log4j/Appender.html" title="interface in org.apache.log4j">Appender</A>&nbsp;appender)</PRE>
  357. <DL>
  358. <DD>Remove the appender passed as parameter form the list of attached
  359. appenders.
  360. <P>
  361. <DD><DL>
  362. <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/apache/log4j/spi/AppenderAttachable.html#removeAppender(org.apache.log4j.Appender)">removeAppender</A></CODE> in interface <CODE><A HREF="../../../../org/apache/log4j/spi/AppenderAttachable.html" title="interface in org.apache.log4j.spi">AppenderAttachable</A></CODE></DL>
  363. </DD>
  364. <DD><DL>
  365. </DL>
  366. </DD>
  367. </DL>
  368. <HR>
  369. <A NAME="removeAppender(java.lang.String)"><!-- --></A><H3>
  370. removeAppender</H3>
  371. <PRE>
  372. public void <B>removeAppender</B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;name)</PRE>
  373. <DL>
  374. <DD>Remove the appender with the name passed as parameter form the
  375. list of appenders.
  376. <P>
  377. <DD><DL>
  378. <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/apache/log4j/spi/AppenderAttachable.html#removeAppender(java.lang.String)">removeAppender</A></CODE> in interface <CODE><A HREF="../../../../org/apache/log4j/spi/AppenderAttachable.html" title="interface in org.apache.log4j.spi">AppenderAttachable</A></CODE></DL>
  379. </DD>
  380. <DD><DL>
  381. </DL>
  382. </DD>
  383. </DL>
  384. <!-- ========= END OF CLASS DATA ========= -->
  385. <HR>
  386. <!-- ======= START OF BOTTOM NAVBAR ====== -->
  387. <A NAME="navbar_bottom"><!-- --></A>
  388. <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
  389. <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
  390. <TR>
  391. <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
  392. <A NAME="navbar_bottom_firstrow"><!-- --></A>
  393. <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
  394. <TR ALIGN="center" VALIGN="top">
  395. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
  396. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  397. <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  398. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/AppenderAttachableImpl.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
  399. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  400. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  401. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  402. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  403. </TR>
  404. </TABLE>
  405. </TD>
  406. <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
  407. </EM>
  408. </TD>
  409. </TR>
  410. <TR>
  411. <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  412. &nbsp;<A HREF="../../../../org/apache/log4j/helpers/AbsoluteTimeDateFormat.html" title="class in org.apache.log4j.helpers"><B>PREV CLASS</B></A>&nbsp;
  413. &nbsp;<A HREF="../../../../org/apache/log4j/helpers/BoundedFIFO.html" title="class in org.apache.log4j.helpers"><B>NEXT CLASS</B></A></FONT></TD>
  414. <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  415. <A HREF="../../../../index.html?org/apache/log4j/helpers/AppenderAttachableImpl.html" target="_top"><B>FRAMES</B></A> &nbsp;
  416. &nbsp;<A HREF="AppenderAttachableImpl.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
  417. &nbsp;<SCRIPT type="text/javascript">
  418. <!--
  419. if(window==top) {
  420. document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
  421. }
  422. //-->
  423. </SCRIPT>
  424. <NOSCRIPT>
  425. <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
  426. </NOSCRIPT>
  427. </FONT></TD>
  428. </TR>
  429. <TR>
  430. <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  431. SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
  432. <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  433. DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
  434. </TR>
  435. </TABLE>
  436. <A NAME="skip-navbar_bottom"></A>
  437. <!-- ======== END OF BOTTOM NAVBAR ======= -->
  438. <HR>
  439. Copyright &#169; 1999-2012 <a href="http://www.apache.org">Apache Software Foundation</a>. All Rights Reserved.
  440. </BODY>
  441. </HTML>