Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.apache.axis.wsdl.toJava
Class JavaBuildFileWriter  view JavaBuildFileWriter download JavaBuildFileWriter.java

java.lang.Object
  extended byorg.apache.axis.wsdl.toJava.JavaWriter
      extended byorg.apache.axis.wsdl.toJava.JavaBuildFileWriter
All Implemented Interfaces:
org.apache.axis.wsdl.gen.Generator

public class JavaBuildFileWriter
extends JavaWriter

This is Wsdl2java's build file Writer. It writes the build.xml file. The build.xml file is a ant build file. After run the WSDL2Java and filling the implementation the user just have to cd to the out dir and type and "ant" (of course you must have ant installed). Then the ant will genarate a jar file which named after the wsdl file you used for WSDL2Java. (named after wsdl file ??? I do not get anything better .. the wsdl file may have more than one service ect ... so we can use them.)

This build file work on the where it is created ... User can not move the genarated code to another mechine and try to build. (class path is broken). But of cource user can move genarated build file at his will.

deploy the webservice using the AdminClient and drop the jar to servlet Container. We might even add another task to deploy the WS as well.

This feature can be on and off using the -B option default is off


Field Summary
protected  Definition definition
           
protected  org.apache.axis.wsdl.symbolTable.SymbolTable symbolTable
          Field symbolTable
 
Fields inherited from class org.apache.axis.wsdl.toJava.JavaWriter
emitter, LINE_LENGTH, type
 
Constructor Summary
JavaBuildFileWriter(Emitter emitter, Definition definition, org.apache.axis.wsdl.symbolTable.SymbolTable symbolTable)
          Constructor
 
Method Summary
 void generate()
          Generate a file.
private  java.util.StringTokenizer getClasspathComponets()
           
protected  java.lang.String getFileName()
          This method must be implemented by a subclass.
private  java.lang.String getJarFileName(java.lang.String wsdlFile)
           
protected  void writeFileBody(java.io.PrintWriter out)
          This method must be implemented by a subclass.
 
Methods inherited from class org.apache.axis.wsdl.toJava.JavaWriter
closePrintWriter, getJavadocDescriptionPart, getPrintWriter, isFileGenerated, registerFile, verboseMessage, writeComment, writeComment, writeFileFooter, writeFileHeader
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

definition

protected Definition definition

symbolTable

protected org.apache.axis.wsdl.symbolTable.SymbolTable symbolTable
Field symbolTable

Constructor Detail

JavaBuildFileWriter

public JavaBuildFileWriter(Emitter emitter,
                           Definition definition,
                           org.apache.axis.wsdl.symbolTable.SymbolTable symbolTable)
Constructor

Method Detail

getFileName

protected java.lang.String getFileName()
Description copied from class: JavaWriter
This method must be implemented by a subclass. It returns the fully-qualified name of the file to be generated.

Specified by:
getFileName in class JavaWriter

writeFileBody

protected void writeFileBody(java.io.PrintWriter out)
                      throws java.io.IOException
Description copied from class: JavaWriter
This method must be implemented by a subclass. This is where the body of a file is generated.

Specified by:
writeFileBody in class JavaWriter

getClasspathComponets

private java.util.StringTokenizer getClasspathComponets()

getJarFileName

private java.lang.String getJarFileName(java.lang.String wsdlFile)

generate

public void generate()
              throws java.io.IOException
Description copied from class: JavaWriter
Generate a file.

Specified by:
generate in interface org.apache.axis.wsdl.gen.Generator
Overrides:
generate in class JavaWriter