01: /**
02: * JOnAS : Java(TM) OpenSource Application Server
03: *
04: * This library is free software; you can redistribute it and/or
05: * modify it under the terms of the GNU Lesser General Public
06: * License as published by the Free Software Foundation; either
07: * version 2.1 of the License, or any later version.
08: *
09: * 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 7445 2005-09-29 13:39:40Z sauthieg $
22: * --------------------------------------------------------------------------
23: */package org.objectweb.jonas_ws.wsgen.generator.axis;
24:
25: import org.objectweb.jonas_lib.genbase.GenBaseException;
26: import org.objectweb.jonas_lib.genbase.archive.Archive;
27:
28: import org.objectweb.jonas_ws.deployment.api.ServiceDesc;
29: import org.objectweb.jonas_ws.deployment.api.ServiceRefDesc;
30: import org.objectweb.jonas_ws.wsgen.WsGenException;
31: import org.objectweb.jonas_ws.wsgen.ddmodifier.WebServicesDDModifier;
32: import org.objectweb.jonas_ws.wsgen.ddmodifier.WsClientDDModifier;
33: import org.objectweb.jonas_ws.wsgen.ddmodifier.WsEndpointDDModifier;
34: import org.objectweb.jonas_ws.wsgen.generator.GeneratorFactory;
35: import org.objectweb.jonas_ws.wsgen.generator.WsClientGenerator;
36: import org.objectweb.jonas_ws.wsgen.generator.WsEndpointGenerator;
37:
38: /**
39: * GeneratorFactory impl for Axis.
40: *
41: * @deprecated
42: * @author Guillaume Sauthier
43: */
44: public class AxisGeneratorFactory extends GeneratorFactory {
45: /**
46: * Return a new WsClientGenerator for the specific generation mecanism.
47: *
48: * @param serviceRef the service-ref containing information for client side
49: * generation process.
50: * @param ddm the XML modifier.
51: * @param archive the Archive to be modified
52: *
53: * @return a new WsClientGenerator.
54: *
55: * @throws GenBaseException When creation fails.
56: * @throws WsGenException When creation fails.
57: */
58: public WsClientGenerator newGenerator(ServiceRefDesc serviceRef,
59: WsClientDDModifier ddm, Archive archive)
60: throws GenBaseException, WsGenException {
61: return new AxisWsClientGenerator(getConfiguration(),
62: 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,
80: Archive arch) throws GenBaseException, WsGenException {
81: return new AxisWsEndpointGenerator(getConfiguration(),
82: serviceDesc, ddm, wsddm, arch);
83: }
84: }
|