1 17 package org.apache.geronimo.j2ee.deployment; 18 19 import java.net.URI ; 20 import java.util.Map ; 21 import java.util.List ; 22 import javax.xml.namespace.QName ; 23 24 import org.apache.geronimo.deployment.DeploymentContext; 25 import org.apache.geronimo.common.DeploymentException; 26 import org.apache.geronimo.gbean.GBeanInfo; 27 import org.apache.geronimo.gbean.GBeanInfoBuilder; 28 29 32 public class UnavailableServiceReferenceBuilder implements ServiceReferenceBuilder { 33 34 public Object createService(Class serviceInterface, URI wsdlURI, URI jaxrpcMappingURI, QName serviceQName, Map portComponentRefMap, List handlerInfos, Map portLocationMap, Map credentialsNameMap, DeploymentContext deploymentContext, Module module, ClassLoader classLoader) throws DeploymentException { 35 throw new DeploymentException("Service references are not available in this configuration"); 36 } 37 38 public static final GBeanInfo GBEAN_INFO; 39 40 static { 41 GBeanInfoBuilder infoBuilder = new GBeanInfoBuilder(UnavailableServiceReferenceBuilder.class); 42 infoBuilder.addInterface(ServiceReferenceBuilder.class); 43 GBEAN_INFO = infoBuilder.getBeanInfo(); 44 } 45 46 public static GBeanInfo getGBeanInfo() { 47 return GBEAN_INFO; 48 } 49 50 } 51 | Popular Tags |