KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > jonas_ws > wsgen > generator > axis > AxisGeneratorFactory


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

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

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

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

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