01: /**
02: * Licensed to the Apache Software Foundation (ASF) under one or more
03: * contributor license agreements. See the NOTICE file distributed with
04: * this work for additional information regarding copyright ownership.
05: * The ASF licenses this file to You under the Apache License, Version 2.0
06: * (the "License"); you may not use this file except in compliance with
07: * the License. You may obtain a copy of the License at
08: *
09: * http://www.apache.org/licenses/LICENSE-2.0
10: *
11: * Unless required by applicable law or agreed to in writing, software
12: * distributed under the License is distributed on an "AS IS" BASIS,
13: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14: * See the License for the specific language governing permissions and
15: * limitations under the License.
16: */package org.apache.geronimo.j2ee.deployment;
17:
18: import java.util.Map;
19:
20: import org.apache.geronimo.common.DeploymentException;
21: import org.apache.geronimo.gbean.GBeanData;
22: import org.apache.geronimo.gbean.GBeanInfo;
23: import org.apache.geronimo.gbean.GBeanInfoBuilder;
24: import org.apache.geronimo.j2ee.j2eeobjectnames.NameFactory;
25: import org.apache.geronimo.deployment.DeploymentContext;
26: import org.apache.geronimo.kernel.repository.Environment;
27:
28: /**
29: * @version $Rev: 539121 $ $Date: 2007-05-17 14:20:58 -0700 (Thu, 17 May 2007) $
30: */
31: public class UnavailableWebServiceBuilder implements WebServiceBuilder {
32:
33: public void findWebServices(Module module, boolean isEJB,
34: Map correctedPortLocations, Environment environment,
35: Map sharedContext) throws DeploymentException {
36: }
37:
38: public boolean configurePOJO(GBeanData targetGBean,
39: String servletName, Module module, String seiClassName,
40: DeploymentContext context) throws DeploymentException {
41: throw new DeploymentException(
42: "Web services are not available in this configuration");
43: }
44:
45: public boolean configureEJB(GBeanData targetGBean, String ejbName,
46: Module module, Map portInfoObject, ClassLoader classLoader)
47: throws DeploymentException {
48: throw new DeploymentException(
49: "Web services are not available in this configuration");
50: }
51:
52: public static final GBeanInfo GBEAN_INFO;
53:
54: static {
55: GBeanInfoBuilder infoBuilder = GBeanInfoBuilder.createStatic(
56: UnavailableWebServiceBuilder.class,
57: NameFactory.MODULE_BUILDER);
58: infoBuilder.addInterface(WebServiceBuilder.class);
59: GBEAN_INFO = infoBuilder.getBeanInfo();
60: }
61:
62: public static GBeanInfo getGBeanInfo() {
63: return GBEAN_INFO;
64: }
65:
66: }
|