JavaServiceWriterpublic class JavaServiceWriter extends Object implements org.apache.axis.wsdl.gen.GeneratorThis is Wsdl2java's Service Writer. It writes the following files, as appropriate:
.java, TestCase.java. |
Fields Summary |
---|
protected org.apache.axis.wsdl.gen.Generator | serviceIfaceWriterField serviceIfaceWriter | protected org.apache.axis.wsdl.gen.Generator | serviceImplWriterField serviceImplWriter | protected org.apache.axis.wsdl.gen.Generator | testCaseWriterField testCaseWriter | public static final String | PORT_NAMEField PORT_NAME | protected Emitter | emitterField emitter | protected javax.wsdl.Service | serviceField WSDL service | protected org.apache.axis.wsdl.symbolTable.SymbolTable | symbolTableField symbolTable |
Methods Summary |
---|
public void | generate()Write all the service bindnigs: service and testcase.
setGenerators();
postSetGenerators();
if (serviceIfaceWriter != null) {
serviceIfaceWriter.generate();
}
if (serviceImplWriter != null) {
serviceImplWriter.generate();
}
if (testCaseWriter != null) {
testCaseWriter.generate();
}
| protected void | postSetGenerators()Set the writer based on the other condition after generate() is called.
if (emitter.isDeploy()) {
serviceIfaceWriter = null;
serviceImplWriter = null;
}
| protected void | setGenerators()setGenerators
Logic to set the generators that are based on the Service.
This logic was moved from the constructor so extended interfaces
can more effectively use the hooks.
ServiceEntry sEntry = symbolTable.getServiceEntry(service.getQName());
if (sEntry.isReferenced()) {
serviceIfaceWriter = new JavaServiceIfaceWriter(emitter, sEntry,
symbolTable);
serviceImplWriter = new JavaServiceImplWriter(emitter, sEntry,
symbolTable);
if (emitter.isTestCaseWanted()) {
testCaseWriter = new JavaTestCaseWriter(emitter, sEntry,
symbolTable);
}
}
|
|