Apache CXF API

org.apache.cxf.maven_plugin.wsdl2js
Class WSDL2JavaScriptMojo

java.lang.Object
  extended by AbstractMojo
      extended by org.apache.cxf.maven_plugin.AbstractCodegenMoho
          extended by org.apache.cxf.maven_plugin.wsdl2js.WSDL2JavaScriptMojo

public class WSDL2JavaScriptMojo
extends AbstractCodegenMoho


Field Summary
 
Fields inherited from class org.apache.cxf.maven_plugin.AbstractCodegenMoho
buildContext, classesDirectory, disableDependencyScan, disableDirectoryScan, excludes, fork, includes, markerDirectory, pluginArtifacts, project, testWsdlRoot, useCompileClasspath, wsdlRoot
 
Constructor Summary
WSDL2JavaScriptMojo()
           
 
Method Summary
protected  List<GenericWsdlOption> createWsdlOptionsFromScansAndExplicitWsdlOptions()
           
protected  Bus generate(GenericWsdlOption genericWsdlOption, Bus bus, Set<URI> classPath)
           
protected  Class<?> getForkClass()
           
protected  File getGeneratedSourceRoot()
           
protected  File getGeneratedTestRoot()
           
protected  String getMarkerSuffix()
           
static List<GenericWsdlOption> loadWsdlOptionsFromDependencies(MavenProject project, Option defaultOptions, File outputDir)
           
protected  void mergeOptions(List<GenericWsdlOption> effectiveWsdlOptions)
           
protected  boolean shouldRun(GenericWsdlOption genericWsdlOption, File doneFile, URI wsdlURI)
          Determine if code should be generated from the given wsdl
 
Methods inherited from class org.apache.cxf.maven_plugin.AbstractCodegenMoho
addPluginArtifact, configureProxyServerSettings, deleteDir, downloadRemoteWsdls, execute, forkOnce, generateCommandLine, getDoneFile, getWsdlFile, getWsdlURI, runForked
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WSDL2JavaScriptMojo

public WSDL2JavaScriptMojo()
Method Detail

generate

protected Bus generate(GenericWsdlOption genericWsdlOption,
                       Bus bus,
                       Set<URI> classPath)
                throws MojoExecutionException
Specified by:
generate in class AbstractCodegenMoho
Throws:
MojoExecutionException

getGeneratedSourceRoot

protected File getGeneratedSourceRoot()
Specified by:
getGeneratedSourceRoot in class AbstractCodegenMoho

getGeneratedTestRoot

protected File getGeneratedTestRoot()
Specified by:
getGeneratedTestRoot in class AbstractCodegenMoho

shouldRun

protected boolean shouldRun(GenericWsdlOption genericWsdlOption,
                            File doneFile,
                            URI wsdlURI)
Description copied from class: AbstractCodegenMoho
Determine if code should be generated from the given wsdl

Specified by:
shouldRun in class AbstractCodegenMoho
Returns:

mergeOptions

protected void mergeOptions(List<GenericWsdlOption> effectiveWsdlOptions)

createWsdlOptionsFromScansAndExplicitWsdlOptions

protected List<GenericWsdlOption> createWsdlOptionsFromScansAndExplicitWsdlOptions()
                                                                            throws MojoExecutionException
Specified by:
createWsdlOptionsFromScansAndExplicitWsdlOptions in class AbstractCodegenMoho
Throws:
MojoExecutionException

loadWsdlOptionsFromDependencies

public static List<GenericWsdlOption> loadWsdlOptionsFromDependencies(MavenProject project,
                                                                      Option defaultOptions,
                                                                      File outputDir)

getForkClass

protected Class<?> getForkClass()
Specified by:
getForkClass in class AbstractCodegenMoho

getMarkerSuffix

protected String getMarkerSuffix()
Specified by:
getMarkerSuffix in class AbstractCodegenMoho

Apache CXF API

Apache CXF