1 23 24 package com.sun.enterprise.tools.verifier; 25 26 27 import com.sun.enterprise.tools.verifier.web.FacesConfigDescriptor; 28 import org.w3c.dom.Document ; 29 30 import com.sun.enterprise.deployment.deploy.shared.AbstractArchive; 31 import com.sun.enterprise.deployment.deploy.shared.Archive; 32 import com.sun.enterprise.deployment.EjbDescriptor; 33 import com.sun.enterprise.tools.verifier.apiscan.classfile.ClosureCompiler; 34 import com.sun.enterprise.tools.verifier.tests.ComponentNameConstructor; 35 import com.sun.jdo.spi.persistence.support.ejb.ejbc.JDOCodeGenerator; 36 37 import java.io.File ; 38 39 46 public class Context { 47 48 private ClassLoader classLoader = null; 49 50 private ClassLoader altClassLoader = null; 51 52 private boolean isAppserverMode = false; 54 56 private AbstractArchive archive = null; 59 60 private Archive moduleArchive; 62 63 private EjbDescriptor ejbdesc = null; 66 67 private boolean isXMLBasedOnSchema = false; 68 private String stdAloneUri = null; 69 private Document runtimeDoc = null; 70 private Document doc = null; 71 private Document webservicedoc = null; 72 private Throwable JDOExceptionObject = null; 73 private TagLibDescriptor[] taglibDescriptors = null; 74 private FacesConfigDescriptor facesConfigDescriptor = null; 75 private JDOCodeGenerator jdc = null; 79 private ClosureCompiler cc; 80 private String classPath; private File outDir; private String schemaVersion=""; 84 85 private String javaEEVersion; 87 88 private ComponentNameConstructor compName; 90 91 public Context() { 92 classLoader = null; 93 } 94 95 public Context(ClassLoader classLoader) { 96 this.classLoader = classLoader; 97 } 98 99 public ClassLoader getClassLoader() { 100 return classLoader; 101 } 102 103 public void setClassLoader(ClassLoader classLoader) { 104 this.classLoader = classLoader; 105 } 106 107 public ClassLoader getRarClassLoader() { 108 return classLoader; 109 } 110 111 public void setRarClassLoader(ClassLoader classLoader) { 112 this.classLoader = classLoader; 113 } 114 115 public void setAppserverMode(boolean isBackend) { 117 this.isAppserverMode = isBackend; 118 } 119 120 public boolean isAppserverMode() { 121 return isAppserverMode; 122 } 123 125 public void setAbstractArchive(AbstractArchive arch) { 126 archive = arch; 127 } 128 129 134 public AbstractArchive getAbstractArchive() { 135 return archive; 136 } 137 138 144 public EjbDescriptor getEjbDescriptorForServiceRef() { 145 return ejbdesc; 146 } 147 148 153 public void setEjbDescriptorForServiceRef(EjbDescriptor desc) { 154 ejbdesc = desc; 155 } 156 157 public void setAlternateClassLoader(ClassLoader l) { 158 altClassLoader = l; 159 } 160 161 public ClassLoader getAlternateClassLoader() { 162 return altClassLoader; 163 } 164 165 public boolean getisXMLBasedOnSchema() { 166 return isXMLBasedOnSchema; 167 } 168 173 177 public Document getRuntimeDocument() { 178 return runtimeDoc; 179 } 180 181 184 public void setRuntimeDocument(Document value) { 185 runtimeDoc = value; 186 } 187 188 192 public Document getDocument() { 193 return doc; 194 } 195 196 199 public void setDocument(Document value) { 200 doc = value; 201 } 202 203 206 207 public Document getWebServiceDocument() { 208 return webservicedoc; 209 } 210 211 214 public void setWebServiceDocument(Document value) { 215 webservicedoc = value; 216 } 217 218 public String getStdAloneArchiveURI() { 219 return stdAloneUri; 220 221 } 222 223 public void setStdAloneArchiveURI(String uri) { 224 stdAloneUri = uri; 225 } 226 227 public void setJDOCodeGenerator(JDOCodeGenerator gen) { 228 jdc = gen; 229 } 230 231 public JDOCodeGenerator getJDOCodeGenerator() { 232 return jdc; 233 } 234 235 public void setJDOException(Throwable ex) { 236 JDOExceptionObject = ex; 237 } 238 239 public Throwable getJDOException() { 240 return JDOExceptionObject; 241 } 242 243 public void setTagLibDescriptors(TagLibDescriptor[] tld) { 244 taglibDescriptors = tld; 245 } 246 247 public TagLibDescriptor[] getTagLibDescriptors() { 248 return taglibDescriptors; 249 } 250 251 public void setFacesConfigDescriptor(FacesConfigDescriptor d) { 252 facesConfigDescriptor = d; 253 } 254 255 public FacesConfigDescriptor getFacesConfigDescriptor() { 256 return facesConfigDescriptor; 257 } 258 259 267 public void setClosureCompiler(ClosureCompiler cc) { 268 this.cc = cc; 269 } 270 271 public ClosureCompiler getClosureCompiler() { 272 return cc; 273 } 274 275 public String getClassPath() { 276 return classPath; 277 } 278 279 public void setClassPath(String cp) { 280 classPath = cp; 281 } 282 283 public File getOutDir() { 284 return outDir; 285 } 286 287 public void setOutDir(File outDir) { 288 this.outDir = outDir; 289 } 290 291 public void setSchemaVersion(String ver) { 292 this.schemaVersion = ver; 293 } 294 295 public String getSchemaVersion() { 296 return schemaVersion; 297 } 298 299 public ComponentNameConstructor getComponentNameConstructor(){ 300 return compName; 301 } 302 303 public void setComponentNameConstructor(ComponentNameConstructor compName){ 304 this.compName = compName; 305 } 306 307 public String getJavaEEVersion(){ 308 return javaEEVersion; 309 } 310 311 public void setJavaEEVersion(String v){ 312 javaEEVersion = v; 313 } 314 315 323 public Archive getModuleArchive() { 324 return moduleArchive; 325 } 326 327 public void setModuleArchive(Archive a) { 328 moduleArchive = a; 329 } 330 } 331 | Popular Tags |