@Test public void testDetachAndStopAllAppenders() throws Exception { NOPAppender<TestEvent> ta = new NOPAppender<TestEvent>(); ta.start(); aai.addAppender(ta); NOPAppender<TestEvent> tab = new NOPAppender<TestEvent>(); tab.setName("test"); tab.start(); aai.addAppender(tab); assertTrue("Appender was not started", tab.isStarted()); aai.detachAndStopAllAppenders(); assertNull("Appender was not removed", aai.getAppender("test")); assertFalse("Appender was not stopped", tab.isStarted()); }
public void detachAndStopAllAppenders() { for (Appender<E> a : appenderList) { a.stop(); } appenderList.clear(); }
AppenderAttachableImpl implements AppenderAttachable<E> { public void detachAndStopAllAppenders() { for (Appender<E> a : appenderList) { a.stop(); } appenderList.clear(); } }
AppenderAttachableImpl implements AppenderAttachable<E> { public void detachAndStopAllAppenders() { for (Appender<E> a : appenderList) { a.stop(); } appenderList.clear(); }  }
AppenderAttachableImpl implements AppenderAttachable<E> { public void detachAndStopAllAppenders() { for (Appender<E> a : appenderList) { a.stop(); } appenderList.clear(); }  void addAppender(Appender<E> newAppender); int appendLoopOnAppenders(E e); Iterator<Appender<E>> iteratorForAppenders(); Appender<E> getAppender(String name); boolean isAttached(Appender<E> appender); void detachAndStopAllAppenders(); boolean detachAppender(Appender<E> appender); boolean detachAppender(String name); }
AppenderAttachableImpl implements AppenderAttachable<E> { public void detachAndStopAllAppenders() { for (Appender<E> a : appenderList) { a.stop(); } appenderList.clear(); }  void addAppender(Appender<E> newAppender); int appendLoopOnAppenders(E e); Iterator<Appender<E>> iteratorForAppenders(); Appender<E> getAppender(String name); boolean isAttached(Appender<E> appender); void detachAndStopAllAppenders(); boolean detachAppender(Appender<E> appender); boolean detachAppender(String name);  }