KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > jonas_ws > wsgen > generator > ews > EWSGeneratorFactory


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: EWSGeneratorFactory.java,v 1.3 2005/05/27 15:01:23 sauthieg Exp $
23  * --------------------------------------------------------------------------
24  */

25
26 package org.objectweb.jonas_ws.wsgen.generator.ews;
27
28 import org.objectweb.jonas_lib.genbase.GenBaseException;
29 import org.objectweb.jonas_lib.genbase.archive.Archive;
30
31 import org.objectweb.jonas_ws.deployment.api.ServiceDesc;
32 import org.objectweb.jonas_ws.deployment.api.ServiceRefDesc;
33 import org.objectweb.jonas_ws.wsgen.WsGenException;
34 import org.objectweb.jonas_ws.wsgen.ddmodifier.WebServicesDDModifier;
35 import org.objectweb.jonas_ws.wsgen.ddmodifier.WsClientDDModifier;
36 import org.objectweb.jonas_ws.wsgen.ddmodifier.WsEndpointDDModifier;
37 import org.objectweb.jonas_ws.wsgen.generator.GeneratorFactory;
38 import org.objectweb.jonas_ws.wsgen.generator.WsClientGenerator;
39 import org.objectweb.jonas_ws.wsgen.generator.WsEndpointGenerator;
40
41
42 /**
43  * GeneratorFactory impl for EWS.
44  *
45  * @author Guillaume Sauthier
46  */

47 public class EWSGeneratorFactory extends GeneratorFactory {
48     /**
49      * Return a new WsClientGenerator for the specific generation mecanism.
50      *
51      * @param serviceRef the service-ref containing information for client side
52      * generation process.
53      * @param ddm the XML modifier.
54      * @param archive the Archive to be modified
55      *
56      * @return a new WsClientGenerator.
57      *
58      * @throws GenBaseException When creation fails.
59      * @throws WsGenException When creation fails.
60      */

61     public WsClientGenerator newGenerator(ServiceRefDesc serviceRef,
62         WsClientDDModifier ddm, Archive archive) throws GenBaseException, WsGenException {
63         return new EWSWsClientGenerator(getConfiguration(), serviceRef, ddm, archive);
64     }
65
66     /**
67      * Return a new WsEndpointGenerator for the specific generation mecanism.
68      *
69      * @param serviceDesc the webservice-description containing information for
70      * server side generation process.
71      * @param ddm the XML modifier.
72      * @param wsddm webservices.xml DD modifier
73      * @param arch base archive
74      *
75      * @return a new WsEndpointGenerator.
76      *
77      * @throws GenBaseException When creation fails.
78      * @throws WsGenException When creation fails.
79      */

80     public WsEndpointGenerator newGenerator(ServiceDesc serviceDesc,
81         WsEndpointDDModifier ddm, WebServicesDDModifier wsddm, Archive arch) throws GenBaseException, WsGenException {
82         return new EWSWsEndpointGenerator(getConfiguration(), serviceDesc, ddm, wsddm, arch);
83     }
84 }
85
Popular Tags