1 package org.apache.geronimo.j2ee.deployment; 2 3 import java.io.File; 4 import java.net.URL; 5 import java.util.Collection; 6 import java.util.jar.JarFile; 7 8 import org.apache.geronimo.common.DeploymentException; 9 import org.apache.geronimo.gbean.AbstractName; 10 import org.apache.geronimo.kernel.Naming; 11 import org.apache.geronimo.kernel.config.ConfigurationStore; 12 import org.apache.geronimo.kernel.repository.Environment; 13 import org.apache.geronimo.gbean.GBeanInfo; 14 import org.apache.geronimo.gbean.GBeanInfoBuilder; 15 import org.apache.geronimo.j2ee.j2eeobjectnames.NameFactory; 16 import org.apache.geronimo.deployment.ModuleIDBuilder; 17 18 /** 19 * @version $Rev: 410741 $ $Date: 2006-05-31 21:35:48 -0700 (Wed, 31 May 2006) $ 20 */ 21 public class UnavailableModuleBuilder implements ModuleBuilder { 22 23 public Module createModule(File plan, JarFile moduleFile, Naming naming, ModuleIDBuilder idBuilder) throws DeploymentException { 24 return null; 25 } 26 27 public Module createModule(Object plan, JarFile moduleFile, String targetPath, URL specDDUrl, Environment environment, Object moduleContextInfo, AbstractName earName, Naming naming, ModuleIDBuilder idBuilder) throws DeploymentException { 28 return null; 29 } 30 31 public void installModule(JarFile earFile, EARContext earContext, Module module, Collection configurationStores, ConfigurationStore targetConfigurationStore, Collection repository) throws DeploymentException { 32 throw new DeploymentException("Module type unavailable"); 33 } 34 35 public void initContext(EARContext earContext, Module module, ClassLoader cl) throws DeploymentException { 36 throw new DeploymentException("Module type unavailable"); 37 } 38 39 public void addGBeans(EARContext earContext, Module module, ClassLoader cl, Collection repository) throws DeploymentException { 40 throw new DeploymentException("Module type unavailable"); 41 } 42 43 public String getSchemaNamespace() { 44 return null; 45 } 46 47 public static final GBeanInfo GBEAN_INFO; 48 49 static { 50 GBeanInfoBuilder infoBuilder = GBeanInfoBuilder.createStatic(UnavailableModuleBuilder.class, NameFactory.MODULE_BUILDER); 51 infoBuilder.addInterface(ModuleBuilder.class); 52 GBEAN_INFO = infoBuilder.getBeanInfo(); 53 } 54 55 public static GBeanInfo getGBeanInfo() { 56 return GBEAN_INFO; 57 } 58 }