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