1 package org.apache.beehive.controls.runtime.assembly; 2 3 20 21 import org.apache.beehive.controls.api.assembly.ControlAssemblyContext; 22 import org.apache.beehive.controls.api.assembly.ControlAssemblyException; 23 24 import java.io.File ; 25 import java.util.Map ; 26 import java.util.Set ; 27 28 31 public class WebAppAssemblyContext extends BaseAssemblyContext 32 implements ControlAssemblyContext.WebAppModule 33 { 34 public static class Factory implements ControlAssemblyContext.Factory 35 { 36 public WebAppAssemblyContext newInstance( Class controlIntfOrExt, 37 Map <String ,String > bindings, 38 Set <String > clients, 39 File moduleRoot, 40 String moduleName, 41 File srcOutputRoot ) 42 throws ControlAssemblyException 43 { 44 return new WebAppAssemblyContext( controlIntfOrExt, bindings, clients, 45 moduleRoot, moduleName, srcOutputRoot ); 46 } 47 } 48 49 protected WebAppAssemblyContext( Class controlIntfOrExt, Map <String ,String > bindings, 50 Set <String > clients, File moduleRoot, 51 String moduleName, File srcOutputRoot ) 52 throws ControlAssemblyException 53 { 54 super( controlIntfOrExt, bindings, clients, moduleRoot, moduleName, srcOutputRoot ); 55 } 56 57 public File getWebXml() 58 { 59 return new File ( getModuleDir(), "WEB-INF" + File.separator + "web.xml"); 60 } 61 } 62 | Popular Tags |