View Javadoc

1   package org.eclipse.jetty.webapp;
2   
3   
4   public class CloneConfiguration extends AbstractConfiguration
5   {
6       final WebAppContext _template;
7       
8       CloneConfiguration(WebAppContext template)
9       {
10          _template=template;
11      }
12      
13      @Override
14      public void configure(WebAppContext context) throws Exception
15      {
16          for (Configuration configuration : _template.getConfigurations())
17              configuration.cloneConfigure(_template,context);
18      }
19  
20  
21      @Override
22      public void deconfigure(WebAppContext context) throws Exception
23      {
24          for (Configuration configuration : _template.getConfigurations())
25              configuration.deconfigure(context);
26      }
27  }