comparison src/org/eclipse/jetty/util/component/AggregateLifeCycle.java @ 820:8e9db0bbf4f9

remove org.eclipse.jetty.util.log and upgrade slf4j
author Franklin Schmidt <fschmidt@gmail.com>
date Tue, 13 Sep 2016 23:13:06 -0600
parents 3428c60d7cfc
children e21ca9878a10
comparison
equal deleted inserted replaced
819:17bd0b170ed6 820:8e9db0bbf4f9
24 import java.util.Collections; 24 import java.util.Collections;
25 import java.util.Iterator; 25 import java.util.Iterator;
26 import java.util.List; 26 import java.util.List;
27 import java.util.concurrent.CopyOnWriteArrayList; 27 import java.util.concurrent.CopyOnWriteArrayList;
28 28
29 import org.eclipse.jetty.util.log.Log; 29 import org.slf4j.Logger;
30 import org.eclipse.jetty.util.log.Logger; 30 import org.slf4j.LoggerFactory;
31 31
32 /** 32 /**
33 * An AggregateLifeCycle is an {@link LifeCycle} implementation for a collection of contained beans. 33 * An AggregateLifeCycle is an {@link LifeCycle} implementation for a collection of contained beans.
34 * <p> 34 * <p>
35 * Beans can be added the AggregateLifeCycle either as managed beans or as unmanaged beans. A managed bean is started, stopped and destroyed with the aggregate. 35 * Beans can be added the AggregateLifeCycle either as managed beans or as unmanaged beans. A managed bean is started, stopped and destroyed with the aggregate.
43 * the API must be used to explicitly set it as unmanaged. 43 * the API must be used to explicitly set it as unmanaged.
44 * <p> 44 * <p>
45 */ 45 */
46 public class AggregateLifeCycle extends AbstractLifeCycle implements Destroyable, Dumpable 46 public class AggregateLifeCycle extends AbstractLifeCycle implements Destroyable, Dumpable
47 { 47 {
48 private static final Logger LOG = Log.getLogger(AggregateLifeCycle.class); 48 private static final Logger LOG = LoggerFactory.getLogger(AggregateLifeCycle.class);
49 private final List<Bean> _beans=new CopyOnWriteArrayList<Bean>(); 49 private final List<Bean> _beans=new CopyOnWriteArrayList<Bean>();
50 private boolean _started=false; 50 private boolean _started=false;
51 51
52 private class Bean 52 private class Bean
53 { 53 {
326 { 326 {
327 dump(System.err,""); 327 dump(System.err,"");
328 } 328 }
329 catch (IOException e) 329 catch (IOException e)
330 { 330 {
331 LOG.warn(e); 331 LOG.warn("",e);
332 } 332 }
333 } 333 }
334 334
335 /* ------------------------------------------------------------ */ 335 /* ------------------------------------------------------------ */
336 public String dump() 336 public String dump()
346 { 346 {
347 dumpable.dump(b,""); 347 dumpable.dump(b,"");
348 } 348 }
349 catch (IOException e) 349 catch (IOException e)
350 { 350 {
351 LOG.warn(e); 351 LOG.warn("",e);
352 } 352 }
353 return b.toString(); 353 return b.toString();
354 } 354 }
355 355
356 /* ------------------------------------------------------------ */ 356 /* ------------------------------------------------------------ */