KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > jonas_ws > wsgen > generator > ews > wsdltoj2ee > JOnASJ2EEWebServicesContext


1 /**
2  * JOnAS : Java(TM) OpenSource Application Server
3  * Copyright (C) 2004 Bull S.A.
4  * Contact: jonas-team@objectweb.org
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * version 2.1 of the License, or any later version.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with this library; if not, write to the Free Software
18  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
19  * USA
20  *
21  * --------------------------------------------------------------------------
22  * $Id: JOnASJ2EEWebServicesContext.java,v 1.1 2004/11/19 09:23:00 sauthieg Exp $
23  * --------------------------------------------------------------------------
24  */

25 package org.objectweb.jonas_ws.wsgen.generator.ews.wsdltoj2ee;
26
27 import java.util.List JavaDoc;
28 import java.util.Vector JavaDoc;
29
30 import org.apache.geronimo.ews.ws4j2ee.context.J2EEWebServiceContext;
31 import org.apache.geronimo.ews.ws4j2ee.context.JaxRpcMapperContext;
32 import org.apache.geronimo.ews.ws4j2ee.context.MiscInfo;
33 import org.apache.geronimo.ews.ws4j2ee.context.j2eeDD.EJBContext;
34 import org.apache.geronimo.ews.ws4j2ee.context.j2eeDD.WebContext;
35 import org.apache.geronimo.ews.ws4j2ee.context.webservices.client.interfaces.ServiceReferanceContext;
36 import org.apache.geronimo.ews.ws4j2ee.context.webservices.server.interfaces.WSCFContext;
37 import org.apache.geronimo.ews.ws4j2ee.context.wsdl.WSDLContext;
38 import org.apache.geronimo.ews.ws4j2ee.toWs.Ws4J2eeFactory;
39
40 import org.objectweb.jonas_ws.deployment.api.ServiceDesc;
41
42
43 /**
44  * JOnAS implementation of the J2EEWebServiceContext from EWS
45  * @author Guillaume Sauthier
46  */

47 public class JOnASJ2EEWebServicesContext implements J2EEWebServiceContext {
48
49     /**
50      * list of service-ref (for client)
51      */

52     private List JavaDoc srCtx;
53
54     /**
55      * service description (for endpoint)
56      */

57     private ServiceDesc serviceDesc = null;
58
59     /**
60      * Default constructor
61      */

62     public JOnASJ2EEWebServicesContext() {
63         super();
64         this.srCtx = new Vector JavaDoc();
65     }
66
67     /**
68      * @deprecated not used by JOnAS Implementation
69      * @inheritDoc
70      * @see org.apache.geronimo.ews.ws4j2ee.context.J2EEWebServiceContext#getWSDLContext()
71      */

72     public WSDLContext getWSDLContext() {
73         return null;
74     }
75
76     /**
77      * @deprecated not used by JOnAS Implementation
78      * @inheritDoc
79      * @see org.apache.geronimo.ews.ws4j2ee.context.J2EEWebServiceContext#setWSDLContext(org.apache.geronimo.ews.ws4j2ee.context.wsdl.WSDLContext)
80      */

81     public void setWSDLContext(WSDLContext wsdlcontext) {
82     }
83
84     /**
85      * @deprecated not used by JOnAS Implementation
86      * @inheritDoc
87      * @see org.apache.geronimo.ews.ws4j2ee.context.J2EEWebServiceContext#getWSCFContext()
88      */

89     public WSCFContext getWSCFContext() {
90         return null;
91     }
92
93     /**
94      * @deprecated not used by JOnAS Implementation
95      * @inheritDoc
96      * @see org.apache.geronimo.ews.ws4j2ee.context.J2EEWebServiceContext#setWSCFContext(org.apache.geronimo.ews.ws4j2ee.context.webservices.server.interfaces.WSCFContext)
97      */

98     public void setWSCFContext(WSCFContext wscfcontext) {
99     }
100
101     /**
102      * @deprecated not used by JOnAS Implementation
103      * @inheritDoc
104      * @see org.apache.geronimo.ews.ws4j2ee.context.J2EEWebServiceContext#getJAXRPCMappingContext()
105      */

106     public JaxRpcMapperContext getJAXRPCMappingContext() {
107         return null;
108     }
109
110     /**
111      * @deprecated not used by JOnAS Implementation
112      * @inheritDoc
113      * @see org.apache.geronimo.ews.ws4j2ee.context.J2EEWebServiceContext#setJAXRPCMappingContext(org.apache.geronimo.ews.ws4j2ee.context.JaxRpcMapperContext)
114      */

115     public void setJAXRPCMappingContext(JaxRpcMapperContext context) {
116     }
117
118     /**
119      * @deprecated not used by JOnAS Implementation
120      * @inheritDoc
121      * @see org.apache.geronimo.ews.ws4j2ee.context.J2EEWebServiceContext#getMiscInfo()
122      */

123     public MiscInfo getMiscInfo() {
124         return null;
125     }
126
127     /**
128      * @deprecated not used by JOnAS Implementation
129      * @inheritDoc
130      * @see org.apache.geronimo.ews.ws4j2ee.context.J2EEWebServiceContext#setMiscInfo(org.apache.geronimo.ews.ws4j2ee.context.MiscInfo)
131      */

132     public void setMiscInfo(MiscInfo info) {
133
134     }
135
136     /**
137      * @deprecated not used by JOnAS Implementation
138      * @inheritDoc
139      * @see org.apache.geronimo.ews.ws4j2ee.context.J2EEWebServiceContext#validate()
140      */

141     public void validate() {
142     }
143
144     /**
145      * @return Returns the serviceDesc.
146      */

147     public ServiceDesc getServiceDesc() {
148         return serviceDesc;
149     }
150
151     /**
152      * @param serviceDesc The serviceDesc to set.
153      */

154     public void setServiceDesc(ServiceDesc serviceDesc) {
155         this.serviceDesc = serviceDesc;
156     }
157
158     /**
159      * @deprecated not used by JOnAS Implementation
160      * @inheritDoc
161      * @see org.apache.geronimo.ews.ws4j2ee.context.J2EEWebServiceContext#setFactory(org.apache.geronimo.ews.ws4j2ee.toWs.Ws4J2eeFactory)
162      */

163     public void setFactory(Ws4J2eeFactory factory) {
164     }
165
166     /**
167      * @deprecated not used by JOnAS Implementation
168      * @inheritDoc
169      * @see org.apache.geronimo.ews.ws4j2ee.context.J2EEWebServiceContext#getFactory()
170      */

171     public Ws4J2eeFactory getFactory() {
172         return null;
173     }
174
175     /**
176      * @deprecated not used by JOnAS Implementation
177      * @inheritDoc
178      * @see org.apache.geronimo.ews.ws4j2ee.context.J2EEWebServiceContext#getEJBDDContext()
179      */

180     public EJBContext getEJBDDContext() {
181         return null;
182     }
183
184     /**
185      * @deprecated not used by JOnAS Implementation
186      * @inheritDoc
187      * @see org.apache.geronimo.ews.ws4j2ee.context.J2EEWebServiceContext#setEJBDDContext(org.apache.geronimo.ews.ws4j2ee.context.j2eeDD.EJBContext)
188      */

189     public void setEJBDDContext(EJBContext context) {
190     }
191
192     /**
193      * @deprecated not used by JOnAS Implementation
194      * @inheritDoc
195      * @see org.apache.geronimo.ews.ws4j2ee.context.J2EEWebServiceContext#getWebDDContext()
196      */

197     public WebContext getWebDDContext() {
198         return null;
199     }
200
201     /**
202      * @deprecated not used by JOnAS Implementation
203      * @inheritDoc
204      * @see org.apache.geronimo.ews.ws4j2ee.context.J2EEWebServiceContext#setWebDDContext(org.apache.geronimo.ews.ws4j2ee.context.j2eeDD.WebContext)
205      */

206     public void setWebDDContext(WebContext context) {
207     }
208
209     /**
210      * @see org.apache.geronimo.ews.ws4j2ee.context.J2EEWebServiceContext#getServiceReferanceContext(int)
211      */

212     public ServiceReferanceContext getServiceReferanceContext(int index) {
213         return (ServiceReferanceContext) srCtx.get(index);
214     }
215
216     /**
217      * @see org.apache.geronimo.ews.ws4j2ee.context.J2EEWebServiceContext#addServiceReferanceContext(org.apache.geronimo.ews.ws4j2ee.context.webservices.client.interfaces.ServiceReferanceContext)
218      */

219     public void addServiceReferanceContext(ServiceReferanceContext context) {
220         srCtx.add(context);
221     }
222
223     /**
224      * @see org.apache.geronimo.ews.ws4j2ee.context.J2EEWebServiceContext#getServiceReferanceContextCount()
225      */

226     public int getServiceReferanceContextCount() {
227         return srCtx.size();
228     }
229
230 }
231
Popular Tags