KickJava   Java API By Example, From Geeks To Geeks.

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


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 java.util.Set JavaDoc;
23 import javax.naming.Reference JavaDoc;
24 import javax.xml.namespace.QName JavaDoc;
25
26 import org.apache.geronimo.common.DeploymentException;
27 import org.apache.geronimo.deployment.DeploymentContext;
28 import org.apache.geronimo.xbeans.j2ee.ServiceRefHandlerType;
29
30 /**
31  * @version $Rev$ $Date$
32  */

33 public interface ServiceReferenceBuilder {
34
35     //it could return a Service or a Reference, we don't care
36
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;
37
38     //TODO a locate port method for links.
39

40     public class HandlerInfoInfo {
41         private final Set JavaDoc portNames;
42         private final Class JavaDoc handlerClass;
43         private final Map JavaDoc handlerConfig;
44         private final QName JavaDoc[] soapHeaders;
45         private final Set JavaDoc soapRoles;
46
47         public HandlerInfoInfo(Set JavaDoc portNames, Class JavaDoc handlerClass, Map JavaDoc handlerConfig, QName JavaDoc[] soapHeaders, Set JavaDoc soapRoles) {
48             this.portNames = portNames;
49             this.handlerClass = handlerClass;
50             this.handlerConfig = handlerConfig;
51             this.soapHeaders = soapHeaders;
52             this.soapRoles = soapRoles;
53         }
54
55         public Set JavaDoc getPortNames() {
56             return portNames;
57         }
58
59         public Class JavaDoc getHandlerClass() {
60             return handlerClass;
61         }
62
63         public Map JavaDoc getHandlerConfig() {
64             return handlerConfig;
65         }
66
67         public QName JavaDoc[] getSoapHeaders() {
68             return soapHeaders;
69         }
70
71         public Set JavaDoc getSoapRoles() {
72             return soapRoles;
73         }
74     }
75 }
76
Popular Tags