1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package org.apache.geronimo.ews.ws4j2ee.context.impl;
18
19 import org.apache.geronimo.ews.ws4j2ee.context.InputOutputFile;
20 import org.apache.geronimo.ews.ws4j2ee.context.MiscInfo;
21 import org.apache.geronimo.ews.ws4j2ee.context.SEIOperation;
22 import org.apache.geronimo.ews.ws4j2ee.context.webservices.server.interfaces.WSCFHandler;
23 import org.apache.geronimo.ews.ws4j2ee.toWs.GenerationConstants;
24
25 import java.util.ArrayList;
26 import java.util.Map;
27
28 /***
29 * @author Srinath Perera(hemapani@opensource.lk)
30 * @see org.apache.geronimo.ews.ws4j2ee.context.MiscInfo
31 */
32 public class MiscInfoImpl implements MiscInfo {
33 private boolean useProvider = false;
34
35 private ClassLoader classloader;
36 private boolean implwithEJB = true;
37
38 private boolean implAvalible = true;
39
40 private String outputPath = ".";
41 private String j2eelink;
42 private String seiname;
43
44 private ArrayList operations;
45 private boolean verbose = false;
46 private String wsConfFileLocation;
47
48 private InputOutputFile wsdlFile;
49 private InputOutputFile jaxrpcfile;
50 private InputOutputFile wsconffile;
51
52 private String targetJ2EEContainer = GenerationConstants.JBOSS_CONTAINER;
53 private String implStyle = GenerationConstants.USE_LOCAL_AND_REMOTE;
54 private boolean seiExists = false;
55 private ArrayList classpathelements;
56 private boolean compile = true;
57 private Map map;
58
59 private WSCFHandler[] handlers;
60
61 public MiscInfoImpl(Map map) {
62 this.map = map;
63 operations = new ArrayList();
64 targetJ2EEContainer = GenerationConstants.JBOSS_CONTAINER;
65 implStyle = GenerationConstants.USE_REMOTE;
66 }
67
68 public String getOutPutPath() {
69 return outputPath;
70 }
71
72 public void setOutputPath(String string) {
73 outputPath = string;
74 }
75
76 public void validate() {
77 }
78
79 /***
80 * @return
81 */
82
83
84
85 public ArrayList getSEIOperations() {
86 return operations;
87 }
88
89
90
91
92 public void setSEIOperations(SEIOperation operation) {
93 this.operations.add(operation);
94 }
95
96 /***
97 * @return
98 */
99 public boolean isVerbose() {
100 return verbose;
101 }
102
103 /***
104 * @return
105 */
106 public String getWsConfFileLocation() {
107 return wsConfFileLocation;
108 }
109
110 /***
111 * @param b
112 */
113 public void setVerbose(boolean b) {
114 verbose = b;
115 }
116
117 /***
118 * @param string
119 */
120 public void setWsConfFileLocation(String string) {
121 wsConfFileLocation = string;
122 }
123
124 /***
125 * @return
126 */
127 public String getJ2eeComponetLink() {
128 return j2eelink;
129 }
130
131 /***
132 * @param string
133 */
134 public void setJ2eeComponetLink(String string) {
135 j2eelink = string;
136 }
137
138 /***
139 * @return
140 */
141 public InputOutputFile getJaxrpcfile() {
142 return jaxrpcfile;
143 }
144
145 /***
146 * @return
147 */
148 public InputOutputFile getWsdlFile() {
149 return wsdlFile;
150 }
151
152 /***
153 * @param string
154 */
155 public void setJaxrpcfile(InputOutputFile string) {
156 jaxrpcfile = string;
157 }
158
159 /***
160 * @param string
161 */
162 public void setWsdlFile(InputOutputFile string) {
163 wsdlFile = string;
164 }
165
166 /***
167 * @return
168 */
169 public String getJaxrpcSEI() {
170 return seiname;
171 }
172
173 /***
174 * @param string
175 */
176 public void setJaxrpcSEI(String string) {
177 seiname = string;
178 }
179
180 /***
181 * @return
182 */
183 public String getImplStyle() {
184 return implStyle;
185 }
186
187 /***
188 * @return
189 */
190 public String getTargetJ2EEContainer() {
191 return targetJ2EEContainer;
192 }
193
194 /***
195 * @param string
196 */
197 public void setImplStyle(String string) {
198 implStyle = string;
199 }
200
201 /***
202 * @param string
203 */
204 public void setTargetJ2EEContainer(String string) {
205 targetJ2EEContainer = string;
206 }
207
208 /***
209 * @return
210 */
211 public boolean isImplwithEJB() {
212 return implwithEJB;
213 }
214
215 /***
216 * @param b
217 */
218 public void setImplwithEJB(boolean b) {
219 implwithEJB = b;
220 }
221
222 /***
223 * @return
224 */
225 public boolean isImplAvalible() {
226 return implAvalible;
227 }
228
229 /***
230 * @param b
231 */
232 public void setImplAvalible(boolean b) {
233 this.implAvalible = b;
234 }
235
236 /***
237 * @return
238 */
239 public InputOutputFile getWsconffile() {
240 return wsconffile;
241 }
242
243 /***
244 * @param string
245 */
246 public void setWsconffile(InputOutputFile string) {
247 wsconffile = string;
248 }
249
250
251
252
253 public WSCFHandler[] getHandlers() {
254 return handlers;
255 }
256
257
258
259
260 public void setHandlers(WSCFHandler[] handlers) {
261 this.handlers = handlers;
262 }
263
264
265
266
267 public boolean isSEIExists() {
268 return seiExists;
269 }
270
271
272
273
274 public void setSEIExists(boolean seiExists) {
275 this.seiExists = seiExists;
276 }
277
278
279
280
281 public ArrayList getClasspathElements() {
282 return classpathelements;
283 }
284
285
286
287
288 public void setClassPathElements(ArrayList classpathelements) {
289 this.classpathelements = classpathelements;
290 }
291
292 /***
293 * @return
294 */
295 public ClassLoader getClassloader() {
296 return classloader;
297 }
298
299 /***
300 * @param loader
301 */
302 public void setClassloader(ClassLoader loader) {
303 classloader = loader;
304 }
305
306 /***
307 * @return
308 */
309 public boolean isCompile() {
310 return compile;
311 }
312
313 /***
314 * @param b
315 */
316 public void setCompile(boolean b) {
317 compile = b;
318 }
319
320 public Object getProprty(Object key) {
321 return map.get(key);
322 }
323 }