KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > jonas_ws > wsgen > generator > WsEndpointGenerator


1 /**
2  * JOnAS: Java(TM) Open Application Server
3  * Copyright (C) 2003-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: WsEndpointGenerator.java,v 1.5 2005/01/21 13:35:50 pelletib Exp $
23  * --------------------------------------------------------------------------
24  */

25
26 package org.objectweb.jonas_ws.wsgen.generator;
27
28 import org.objectweb.jonas_lib.genbase.GenBaseException;
29 import org.objectweb.jonas_lib.genbase.archive.Archive;
30 import org.objectweb.jonas_lib.genbase.generator.Config;
31
32 import org.objectweb.jonas_ws.deployment.api.ServiceDesc;
33 import org.objectweb.jonas_ws.wsgen.ddmodifier.WebServicesDDModifier;
34 import org.objectweb.jonas_ws.wsgen.ddmodifier.WsEndpointDDModifier;
35
36 /**
37  * Generate sources and/or config files for WebServices Endpoint.
38  * @author Guillaume Sauthier
39  */

40 public abstract class WsEndpointGenerator extends Generator {
41
42     /** WebService Endpoint description */
43     private ServiceDesc service;
44
45     /** archive */
46     private Archive archive;
47
48     /** Web DD Modifier */
49     private WsEndpointDDModifier modifier;
50
51     /** Webservices DD Modifier */
52     private WebServicesDDModifier wsModifier;
53
54     /**
55      * Creates a new WsEndpointGenerator
56      * @param config Generator Configuration
57      * @param serviceDesc WebService Endpoint description
58      * @param ddm Web DD Modifier
59      * @param wsddm webservices.xml DD modifier
60      * @throws GenBaseException When instanciation fails
61      */

62     public WsEndpointGenerator(Config config, ServiceDesc serviceDesc, WsEndpointDDModifier ddm,
63             WebServicesDDModifier wsddm, 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 }
Popular Tags