1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package org.apache.geronimo.ews.ws4j2ee.toWs.impl;
18
19 import java.io.File;
20 import java.util.HashMap;
21 import java.util.Map;
22
23 import org.apache.axis.wsdl.fromJava.Emitter;
24 import org.apache.geronimo.ews.ws4j2ee.module.Module;
25 import org.apache.geronimo.ews.ws4j2ee.module.ModuleFactory;
26 import org.apache.geronimo.ews.ws4j2ee.toWs.GenerationConstants;
27 import org.apache.geronimo.ews.ws4j2ee.toWs.Ws4J2eeDeployContext;
28
29 /***
30 * @author hemapani@opensource.lk
31 */
32 public class Ws4J2eeDeployContextImpl implements Ws4J2eeDeployContext {
33 protected String implStyle = GenerationConstants.USE_INTERNALS;
34 protected HashMap map;
35 protected String j2eeContainer = GenerationConstants.GERONIMO_CONTAINER;
36
37 protected boolean compile = false;
38 /***
39 * Field module
40 */
41 protected Module module;
42
43 /***
44 * Field moduleLocation
45 */
46 protected String moduleLocation;
47
48 /***
49 * Field outputLocation
50 */
51 protected String outputLocation;
52
53 /***
54 * Constructor GeronimoWsDeployContext
55 *
56 * @param moduleLocation
57 * @param outputLocation
58 */
59 public Ws4J2eeDeployContextImpl(String moduleLocation,
60 String outputLocation,
61 ClassLoader parentCL,
62 String implStyle,
63 String j2eeContiner,HashMap map) {
64 module =
65 ModuleFactory.createPackageModule(moduleLocation, parentCL,new File(outputLocation) );
66 this.moduleLocation = moduleLocation;
67 this.outputLocation = outputLocation;
68 this.implStyle = implStyle;
69 this.j2eeContainer = j2eeContiner;
70 this.map = map;
71 }
72
73 /***
74 * Constructor GeronimoWsDeployContext
75 *
76 * @param moduleLocation
77 * @param outputLocation
78 */
79 public Ws4J2eeDeployContextImpl(String moduleLocation,
80 String outputLocation,
81 ClassLoader parentCL) {
82 module =
83 ModuleFactory.createPackageModule(moduleLocation,
84 parentCL,new File(outputLocation));
85 this.moduleLocation = moduleLocation;
86 this.outputLocation = outputLocation;
87 }
88
89 /***
90 * Method getMode
91 *
92 * @return
93 */
94 public int getMode() {
95 return Emitter.MODE_ALL;
96 }
97
98 /***
99 * Method getWsdlImplFilename
100 *
101 * @return
102 */
103 public String getWsdlImplFilename() {
104 return null;
105 }
106
107 /***
108 * Method getModule
109 *
110 * @return
111 */
112 public Module getModule() {
113 return module;
114 }
115
116 /***
117 * Method getModuleLocation
118 *
119 * @return
120 */
121 public String getModuleLocation() {
122 return moduleLocation;
123 }
124
125 /***
126 * Method getContanier
127 *
128 * @return
129 */
130 public String getContanier() {
131 return j2eeContainer;
132 }
133
134 /***
135 * Method getImplStyle
136 *
137 * @return
138 */
139 public String getImplStyle() {
140 return implStyle;
141 }
142
143 /***
144 * Method getOutPutLocation
145 *
146 * @return
147 */
148 public String getOutPutLocation() {
149 return outputLocation;
150 }
151
152 /***
153 * @return
154 */
155 public boolean isCompile() {
156 return compile;
157 }
158
159 public Map getProperties() {
160 return map;
161 }
162
163 /***
164 * @param b
165 */
166 public void setCompile(boolean b) {
167 compile = b;
168 }
169
170 }