1 17 package org.apache.geronimo.j2ee.deployment; 18 19 import java.io.File ; 20 import java.net.URL ; 21 import java.util.Collection ; 22 import java.util.jar.JarFile ; 23 24 import org.apache.geronimo.common.DeploymentException; 25 import org.apache.geronimo.gbean.AbstractName; 26 import org.apache.geronimo.kernel.Naming; 27 import org.apache.geronimo.kernel.config.ConfigurationStore; 28 import org.apache.geronimo.kernel.repository.Environment; 29 import org.apache.geronimo.gbean.GBeanInfo; 30 import org.apache.geronimo.gbean.GBeanInfoBuilder; 31 import org.apache.geronimo.j2ee.j2eeobjectnames.NameFactory; 32 import org.apache.geronimo.deployment.ModuleIDBuilder; 33 34 37 public class UnavailableModuleBuilder implements ModuleBuilder { 38 39 public Module createModule(File plan, JarFile moduleFile, Naming naming, ModuleIDBuilder idBuilder) throws DeploymentException { 40 return null; 41 } 42 43 public Module createModule(Object plan, JarFile moduleFile, String targetPath, URL specDDUrl, Environment environment, Object moduleContextInfo, AbstractName earName, Naming naming, ModuleIDBuilder idBuilder) throws DeploymentException { 44 return null; 45 } 46 47 public void installModule(JarFile earFile, EARContext earContext, Module module, Collection configurationStores, ConfigurationStore targetConfigurationStore, Collection repository) throws DeploymentException { 48 throw new DeploymentException("Module type unavailable"); 49 } 50 51 public void initContext(EARContext earContext, Module module, ClassLoader cl) throws DeploymentException { 52 throw new DeploymentException("Module type unavailable"); 53 } 54 55 public void addGBeans(EARContext earContext, Module module, ClassLoader cl, Collection repository) throws DeploymentException { 56 throw new DeploymentException("Module type unavailable"); 57 } 58 59 public String getSchemaNamespace() { 60 return null; 61 } 62 63 public static final GBeanInfo GBEAN_INFO; 64 65 static { 66 GBeanInfoBuilder infoBuilder = GBeanInfoBuilder.createStatic(UnavailableModuleBuilder.class, NameFactory.MODULE_BUILDER); 67 infoBuilder.addInterface(ModuleBuilder.class); 68 GBEAN_INFO = infoBuilder.getBeanInfo(); 69 } 70 71 public static GBeanInfo getGBeanInfo() { 72 return GBEAN_INFO; 73 } 74 } 75 | Popular Tags |