KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > geronimo > j2ee > deployment > UnavailableWebServiceBuilder


1 /**
2  * Licensed to the Apache Software Foundation (ASF) under one or more
3  * contributor license agreements. See the NOTICE file distributed with
4  * this work for additional information regarding copyright ownership.
5  * The ASF licenses this file to You under the Apache License, Version 2.0
6  * (the "License"); you may not use this file except in compliance with
7  * the License. You may obtain a copy of the License at
8  *
9  * 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  */

17 package org.apache.geronimo.j2ee.deployment;
18
19 import java.util.Map JavaDoc;
20 import java.util.jar.JarFile JavaDoc;
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 /**
31  * @version $Rev: 479496 $ $Date: 2006-11-26 20:57:00 -0500 (Sun, 26 Nov 2006) $
32  */

33 public class UnavailableWebServiceBuilder implements WebServiceBuilder {
34
35     public void findWebServices(JarFile JavaDoc moduleFile, boolean isEJB, Map JavaDoc correctedPortLocations, Environment environment, Map JavaDoc sharedContext) throws DeploymentException {
36     }
37
38     public boolean configurePOJO(GBeanData targetGBean, String JavaDoc servletName, Module module, String JavaDoc 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 JavaDoc ejbName, JarFile JavaDoc moduleFile, Map JavaDoc portInfoObject, ClassLoader JavaDoc 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