01: /**
02: * JOnAS : Java(TM) OpenSource Application Server
03: * Copyright (C) 2004 Bull S.A.
04: * Contact: jonas-team@objectweb.org
05: *
06: * This library is free software; you can redistribute it and/or
07: * modify it under the terms of the GNU Lesser General Public
08: * License as published by the Free Software Foundation; either
09: * 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 7320 2005-09-05 13:33:44Z sauthieg $
23: * --------------------------------------------------------------------------
24: */package org.objectweb.jonas_ws.wsgen.generator.ews;
25:
26: import org.objectweb.jonas_lib.genbase.GenBaseException;
27: import org.objectweb.jonas_lib.genbase.archive.Archive;
28:
29: import org.objectweb.jonas_ws.deployment.api.ServiceDesc;
30: import org.objectweb.jonas_ws.deployment.api.ServiceRefDesc;
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 EWS.
40: *
41: * @author Guillaume Sauthier
42: */
43: public class EWSGeneratorFactory extends GeneratorFactory {
44: /**
45: * Return a new WsClientGenerator for the specific generation mecanism.
46: *
47: * @param serviceRef the service-ref containing information for client side
48: * generation process.
49: * @param ddm the XML modifier.
50: * @param archive the Archive to be modified
51: *
52: * @return a new WsClientGenerator.
53: *
54: * @throws GenBaseException When creation fails.
55: */
56: public WsClientGenerator newGenerator(ServiceRefDesc serviceRef,
57: WsClientDDModifier ddm, Archive archive)
58: throws GenBaseException {
59: return new EWSWsClientGenerator(getConfiguration(), serviceRef,
60: ddm, archive);
61: }
62:
63: /**
64: * Return a new WsEndpointGenerator for the specific generation mecanism.
65: *
66: * @param serviceDesc the webservice-description containing information for
67: * server side generation process.
68: * @param ddm the XML modifier.
69: * @param wsddm webservices.xml DD modifier
70: * @param arch base archive
71: *
72: * @return a new WsEndpointGenerator.
73: *
74: * @throws GenBaseException When creation fails.
75: */
76: public WsEndpointGenerator newGenerator(ServiceDesc serviceDesc,
77: WsEndpointDDModifier ddm, WebServicesDDModifier wsddm,
78: Archive arch) throws GenBaseException {
79: return new EWSWsEndpointGenerator(getConfiguration(),
80: serviceDesc, ddm, wsddm, arch);
81: }
82: }
|