01: /**
02: * JOnAS: Java(TM) Open Application Server
03: * Copyright (C) 2003-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: WsEndpointGenerator.java 7444 2005-09-29 13:39:18Z sauthieg $
23: * --------------------------------------------------------------------------
24: */package org.objectweb.jonas_ws.wsgen.generator;
25:
26: import org.objectweb.jonas_lib.genbase.GenBaseException;
27: import org.objectweb.jonas_lib.genbase.archive.Archive;
28: import org.objectweb.jonas_lib.genbase.generator.Config;
29:
30: import org.objectweb.jonas_ws.deployment.api.ServiceDesc;
31: import org.objectweb.jonas_ws.wsgen.ddmodifier.WebServicesDDModifier;
32: import org.objectweb.jonas_ws.wsgen.ddmodifier.WsEndpointDDModifier;
33:
34: /**
35: * Generate sources and/or config files for WebServices Endpoint.
36: * @author Guillaume Sauthier
37: */
38: public abstract class WsEndpointGenerator extends Generator {
39:
40: /** WebService Endpoint description */
41: private ServiceDesc service;
42:
43: /** archive */
44: private Archive archive;
45:
46: /** Web DD Modifier */
47: private WsEndpointDDModifier modifier;
48:
49: /** Webservices DD Modifier */
50: private WebServicesDDModifier wsModifier;
51:
52: /**
53: * Creates a new WsEndpointGenerator
54: * @param config Generator Configuration
55: * @param serviceDesc WebService Endpoint description
56: * @param ddm Web DD Modifier
57: * @param wsddm webservices.xml DD modifier
58: * @param arch the Archive to modify
59: * @throws GenBaseException When instanciation fails
60: */
61: public WsEndpointGenerator(Config config, ServiceDesc serviceDesc,
62: WsEndpointDDModifier ddm, WebServicesDDModifier wsddm,
63: Archive arch) throws GenBaseException {
64: super (config);
65: service = serviceDesc;
66: modifier = ddm;
67: wsModifier = wsddm;
68: archive = arch;
69: }
70:
71: /**
72: * @return the service.
73: */
74: public ServiceDesc getService() {
75: return service;
76: }
77:
78: /**
79: * @return the archive.
80: */
81: public Archive getArchive() {
82: return archive;
83: }
84:
85: /**
86: * @return the modifier.
87: */
88: public WsEndpointDDModifier getModifier() {
89: return modifier;
90: }
91:
92: /**
93: * @return the wsModifier.
94: */
95: public WebServicesDDModifier getWsModifier() {
96: return wsModifier;
97: }
98: }
|