1 17 package org.apache.geronimo.j2ee.deployment; 18 19 import java.io.IOException ; 20 import java.net.URI ; 21 import java.net.URISyntaxException ; 22 import java.util.jar.JarFile ; 23 import java.util.Map ; 24 25 import org.apache.geronimo.deployment.DeploymentContext; 26 import org.apache.geronimo.gbean.AbstractName; 27 import org.apache.geronimo.kernel.config.ConfigurationModuleType; 28 import org.apache.geronimo.kernel.repository.Environment; 29 import org.apache.xmlbeans.XmlObject; 30 31 34 public class EJBModule extends Module { 35 private AbstractName moduleCmpEngineName; 36 private final Map sharedContext; 37 38 public EJBModule(boolean standAlone, AbstractName moduleName, Environment environment, JarFile moduleFile, String targetPath, XmlObject specDD, XmlObject vendorDD, String originalSpecDD, Map sharedContext) { 39 super(standAlone, moduleName, environment, moduleFile, targetPath, specDD, vendorDD, originalSpecDD, null); 40 this.sharedContext = sharedContext; 41 } 42 43 public ConfigurationModuleType getType() { 44 return ConfigurationModuleType.EJB; 45 } 46 47 public void addClass(URI location, String fqcn, byte[] bytes, DeploymentContext context) throws IOException , URISyntaxException { 48 context.addClass(location, fqcn, bytes); 49 } 50 51 public AbstractName getModuleCmpEngineName() { 52 return moduleCmpEngineName; 53 } 54 55 public void setModuleCmpEngineName(AbstractName moduleCmpEngineName) { 56 this.moduleCmpEngineName = moduleCmpEngineName; 57 } 58 59 public Map getSharedContext() { 60 return sharedContext; 61 } 62 } 63 64 | Popular Tags |