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 AppAssemblyContext extends BaseAssemblyContext 32 implements ControlAssemblyContext.EntAppModule 33 { 34 public static class Factory implements ControlAssemblyContext.Factory 35 { 36 public AppAssemblyContext 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 AppAssemblyContext( controlIntfOrExt, bindings, clients, 45 moduleRoot, moduleName, srcOutputRoot ); 46 } 47 } 48 49 protected AppAssemblyContext( 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 getApplicationXml() 58 { 59 return new File ( getModuleDir(), "META-INF" + File.separator + "application.xml" ); 60 } 61 } 62 | Popular Tags |