KickJava   Java API By Example, From Geeks To Geeks.

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


1 /**
2  *
3  * Copyright 2003-2004 The Apache Software Foundation
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * 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.net.URI JavaDoc;
20 import java.util.Map JavaDoc;
21 import java.util.List JavaDoc;
22 import javax.xml.namespace.QName JavaDoc;
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 /**
30  * @version $Rev: $ $Date: $
31  */

32 public class UnavailableServiceReferenceBuilder implements ServiceReferenceBuilder {
33
34     public Object JavaDoc createService(Class JavaDoc serviceInterface, URI JavaDoc wsdlURI, URI JavaDoc jaxrpcMappingURI, QName JavaDoc serviceQName, Map JavaDoc portComponentRefMap, List JavaDoc handlerInfos, Map JavaDoc portLocationMap, Map JavaDoc credentialsNameMap, DeploymentContext deploymentContext, Module module, ClassLoader JavaDoc 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