org.apache.beehive.controls.system.webservice.generator
Class ServiceControlGeneratorTask

Object
  extended by ProjectComponent
      extended by Task
          extended by ServiceControlGeneratorTask

public final class ServiceControlGeneratorTask
extends Task

The Webservice Control Generator task generates a web service control from a WSDL.

<taskdef name="service-control-gen" classname="org.apache.beehive.controls.system.webservice.generate.ServiceControlGenerationTask" classpathref="scgen.dependency.path"/> <p/> <p/> <service-control-gen srcDir="${build.wsdls}" destDir="${build.jcxgen}" destPackageName="${pkg.name}" wsdlPathAnnotation=${annot}"/>


Field Summary
 
Fields inherited from class Task
description, location, target, taskName, taskType, wrapper
 
Fields inherited from class ProjectComponent
project
 
Constructor Summary
ServiceControlGeneratorTask()
          Create a new ServiceControlGeneratorTask.
 
Method Summary
 void execute()
          Execute this task.
 void setDestdir(File destdir)
          Set the destination directory for the generated service controls.
 void setDestPackageName(String destPackageName)
          The java package name for generated service controls.
 void setSrcdir(File srcdir)
          Set the source directory to generate service control(s) from.
 void setSrcfile(File srcfile)
          Set the source file (wsdl) to generate the service control from.
 void setWsdlPathAnnotation(String wsdlPathAnnotation)
          The generated service control's include a class-level annotation which describes the physical location of the WSDL the control was generated from.
 
Methods inherited from class Task
getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, maybeConfigure, perform, reconfigure, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
 
Methods inherited from class ProjectComponent
getProject, setProject
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServiceControlGeneratorTask

public ServiceControlGeneratorTask()
Create a new ServiceControlGeneratorTask.

Method Detail

setSrcfile

public void setSrcfile(File srcfile)
Set the source file (wsdl) to generate the service control from.

Parameters:
srcfile - WSDL used to generate a service control.

setSrcdir

public void setSrcdir(File srcdir)
Set the source directory to generate service control(s) from. All WSDL files in the directory will be processed, each one producing a service control.

Parameters:
srcdir - The directory to process WSDLs in.

setDestdir

public void setDestdir(File destdir)
Set the destination directory for the generated service controls. The directory specified will be the base generation dir, if destPackageName is specified the appropriate sub-directories will be created in it.

Parameters:
destdir - Location to create service control(s).

setDestPackageName

public void setDestPackageName(String destPackageName)
The java package name for generated service controls. If not set the generated controls the package name will be generated from the target namespace of the WSDL.

Parameters:
destPackageName - Java package name. Package names may be of arbitrary depth, ex. xxx.yyy.zzz

setWsdlPathAnnotation

public void setWsdlPathAnnotation(String wsdlPathAnnotation)
The generated service control's include a class-level annotation which describes the physical location of the WSDL the control was generated from.

Parameters:
wsdlPathAnnotation - The value for the WSDL path annotation.

execute

public void execute()
Execute this task.

Overrides:
execute in class Task