001    package org.apache.geronimo.j2ee.deployment;
002    
003    import java.io.File;
004    import java.net.URL;
005    import java.util.Collection;
006    import java.util.jar.JarFile;
007    
008    import org.apache.geronimo.common.DeploymentException;
009    import org.apache.geronimo.gbean.AbstractName;
010    import org.apache.geronimo.kernel.Naming;
011    import org.apache.geronimo.kernel.config.ConfigurationStore;
012    import org.apache.geronimo.kernel.repository.Environment;
013    import org.apache.geronimo.gbean.GBeanInfo;
014    import org.apache.geronimo.gbean.GBeanInfoBuilder;
015    import org.apache.geronimo.j2ee.j2eeobjectnames.NameFactory;
016    import org.apache.geronimo.deployment.ModuleIDBuilder;
017    
018    /**
019     * @version $Rev: 410741 $ $Date: 2006-05-31 21:35:48 -0700 (Wed, 31 May 2006) $
020     */
021    public class UnavailableModuleBuilder implements ModuleBuilder {
022    
023        public Module createModule(File plan, JarFile moduleFile, Naming naming, ModuleIDBuilder idBuilder) throws DeploymentException {
024                return null;
025        }
026    
027        public Module createModule(Object plan, JarFile moduleFile, String targetPath, URL specDDUrl, Environment environment, Object moduleContextInfo, AbstractName earName, Naming naming, ModuleIDBuilder idBuilder) throws DeploymentException {
028                return null;
029        }
030    
031        public void installModule(JarFile earFile, EARContext earContext, Module module, Collection configurationStores, ConfigurationStore targetConfigurationStore, Collection repository) throws DeploymentException {
032            throw new DeploymentException("Module type unavailable");
033        }
034    
035        public void initContext(EARContext earContext, Module module, ClassLoader cl) throws DeploymentException {
036            throw new DeploymentException("Module type unavailable");
037        }
038    
039        public void addGBeans(EARContext earContext, Module module, ClassLoader cl, Collection repository) throws DeploymentException {
040            throw new DeploymentException("Module type unavailable");
041        }
042    
043        public String getSchemaNamespace() {
044            return null;
045        }
046    
047        public static final GBeanInfo GBEAN_INFO;
048    
049        static {
050            GBeanInfoBuilder infoBuilder = GBeanInfoBuilder.createStatic(UnavailableModuleBuilder.class, NameFactory.MODULE_BUILDER);
051            infoBuilder.addInterface(ModuleBuilder.class);
052            GBEAN_INFO = infoBuilder.getBeanInfo();
053        }
054    
055        public static GBeanInfo getGBeanInfo() {
056            return GBEAN_INFO;
057        }
058    }