|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.muse.tools.generator.util.AbstractCommandLineApp
org.apache.muse.tools.generator.Wsdl2Java
public class Wsdl2Java
Wsdl2Java is a command-line utility that takes a WSDL descriptor and generates all the code, project and deployment files you need to actualize a managability endpoint.
Field Summary |
---|
Fields inherited from class org.apache.muse.tools.generator.util.AbstractCommandLineApp |
---|
_logger, PATH_TO_POM_PROPERTIES, TOP_LEVEL_PACKAGE, VERSION_PROPERTY |
Fields inherited from interface org.apache.muse.tools.generator.Wsdl2JavaConstants |
---|
ANALYZER_FLAG, AXIS2_TYPE, BASE_DESCRIPTOR_FLAG, DESCRIPTOR_FLAG, HEADERS_FLAG, HELP_ADVANCED_FLAG, HELP_FLAG, J2EE_FLAG, MINI_TYPE, MUSE_BASE_DESCRIPTOR, OSGI_FLAG, OUTPUT_FLAG, OVERWRITE_FLAG, PROJECTIZER_FLAG, PROXY_FLAG, QUIET_FLAG, SYNTHESIZER_FLAG, VERBOSE_FLAG, VERSION_FLAG, WSDL_DEFINITION_FLAG |
Constructor Summary | |
---|---|
Wsdl2Java(File wsdlFile)
Simplest constructor. |
|
Wsdl2Java(File wsdlFile,
boolean overwrite)
Same as the WSDL-only constructor except that here we can specify if we want to overwrite existing files. |
|
Wsdl2Java(File wsdlFile,
File descriptorFile,
boolean overwrite,
boolean generateCustomHeaders,
File targetDirectory)
Specify all three: WSDL file, Muse descriptor and overwrite boolean. |
Method Summary | |
---|---|
ConfigurationData |
getConfigurationData()
Get the current configuration data that is first passed to the analyzer phase. |
static void |
main(String[] args)
Venerable main method. |
void |
run()
Generate code using the analyser, synthesizer and projectizer. |
void |
setAnalyzer(Analyzer analyzer)
Sets the analyzer to use during code generation. |
void |
setProjectizer(Projectizer projectizer)
Sets the projectizer to use during code generation. |
void |
setSynthesizer(Synthesizer synthesizer)
Sets the synthesizer to use during code generation. |
Methods inherited from class org.apache.muse.tools.generator.util.AbstractCommandLineApp |
---|
checkOverwriteArg, checkParentDirectory, createLogger, getFiller, getMetadataDescriptor, getMetadataDescriptor, getMetadataDescriptors, getVersion, getWSDLDocument, getWSDLDocuments, handleErrorAndExit, handleErrorAndExit, handleExit, handleMessage, hasNoArguments |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Wsdl2Java(File wsdlFile) throws Exception
wsdlFile
- The WSDL file to analyze.
Exception
public Wsdl2Java(File wsdlFile, boolean overwrite) throws Exception
wsdlFile
- The WSDL file to analyze.overwrite
- Whether or not to overwrite existing files.
Exception
public Wsdl2Java(File wsdlFile, File descriptorFile, boolean overwrite, boolean generateCustomHeaders, File targetDirectory) throws Exception
wsdlFile
- The WSDL file to analyze.descriptorFile
- The Muse descriptor (can be null).overwrite
- Whether or not to overwrite existing files.generateCustomHeaders
-
Exception
Method Detail |
---|
public void run() throws Exception
Exception
- If anything goes wrong during code generation.public void setAnalyzer(Analyzer analyzer)
analyzer
- public void setProjectizer(Projectizer projectizer)
projectizer
- public void setSynthesizer(Synthesizer synthesizer)
synthesizer
- public ConfigurationData getConfigurationData()
run()
.
public static void main(String[] args)
run()
args
- Command line parametersrun()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |