View Javadoc

1   package com.googlecode.t7mp;
2   
3   import org.apache.catalina.startup.Bootstrap;
4   
5   /**
6    * 
7    * 
8    * @author jbellmann
9    *
10   */
11  public class StoppableBootstrapAdapter implements Stoppable {
12  
13      private final Bootstrap bootstrap;
14  
15      public StoppableBootstrapAdapter(Bootstrap bootstrap) {
16          this.bootstrap = bootstrap;
17      }
18  
19      @Override
20      public void stop() {
21          try {
22              bootstrap.stop();
23          } catch (Exception e) {
24              e.printStackTrace();
25          }
26      }
27  
28  }