1 17 package org.apache.geronimo.j2ee.deployment; 18 19 import java.util.Map ; 20 import java.util.jar.JarFile ; 21 22 import org.apache.geronimo.common.DeploymentException; 23 import org.apache.geronimo.gbean.GBeanData; 24 import org.apache.geronimo.gbean.GBeanInfo; 25 import org.apache.geronimo.gbean.GBeanInfoBuilder; 26 import org.apache.geronimo.j2ee.j2eeobjectnames.NameFactory; 27 import org.apache.geronimo.deployment.DeploymentContext; 28 import org.apache.geronimo.kernel.repository.Environment; 29 30 33 public class UnavailableWebServiceBuilder implements WebServiceBuilder { 34 35 public void findWebServices(JarFile moduleFile, boolean isEJB, Map correctedPortLocations, Environment environment, Map sharedContext) throws DeploymentException { 36 } 37 38 public boolean configurePOJO(GBeanData targetGBean, String servletName, Module module, String seiClassName, DeploymentContext context) throws DeploymentException { 39 throw new DeploymentException("Web services are not available in this configuration"); 40 } 41 42 public boolean configureEJB(GBeanData targetGBean, String ejbName, JarFile moduleFile, Map portInfoObject, ClassLoader classLoader) throws DeploymentException { 43 throw new DeploymentException("Web services are not available in this configuration"); 44 } 45 46 public static final GBeanInfo GBEAN_INFO; 47 48 static { 49 GBeanInfoBuilder infoBuilder = GBeanInfoBuilder.createStatic(UnavailableWebServiceBuilder.class, NameFactory.MODULE_BUILDER); 50 infoBuilder.addInterface(WebServiceBuilder.class); 51 GBEAN_INFO = infoBuilder.getBeanInfo(); 52 } 53 54 public static GBeanInfo getGBeanInfo() { 55 return GBEAN_INFO; 56 } 57 58 } 59 | Popular Tags |