org.apache.muse.tools.generator.projectizer
Class J2EEAxis2Projectizer
java.lang.Object
org.apache.muse.tools.generator.projectizer.AbstractProjectizer
org.apache.muse.tools.generator.projectizer.J2EEAxis2Projectizer
- All Implemented Interfaces:
- Projectizer, Configurable
- Direct Known Subclasses:
- OsgiAxis2Projectizer
public class J2EEAxis2Projectizer
- extends AbstractProjectizer
A Projectizer for generating projects that target the J2EE Axis2 platform.
This projectizer will create a directory structure as follow:
- JavaSource/: if there is any source to generate it will go into this folder
- WebContent/: this is a folder that has underneath it an exploded WAR that
has all of the descriptors required to deploy to a J2EE server. This
also includes WSDL and muse.xml descriptors.
- build.xml: an Ant build script that will build in the current directory and
generate a packaged WAR file that is ready to be deployed. This build script
will compile what's in JavaSource, package it as a jar, put it into
WebContent/WEB-INF/lib and then create the WAR from the contents of
WebContent.
- Author:
- Andrew Eberbach (aeberbac)
Method Summary |
protected void |
createArtifacts(File webContentDir)
|
protected void |
createBuildFile(File baseTargetDir,
String buildFileResource,
String buildFile)
|
protected void |
createDescriptor(Document descriptorDocument,
Document wsdl,
File descriptorFile,
Map capabilities,
String wsdlRelativePath,
int resourceIndex)
|
protected void |
createRMDFile(MetadataDescriptor rmd,
Document wsdl,
File wsdldir)
|
protected void |
createServicesDescriptor(ServicesDescriptorHelper servicesHelper,
File servicesFile)
|
protected void |
createWSDLFile(Document wsdl,
File wsdldir)
|
ConfigurationDataDescriptor[] |
getConfigurationDataDescriptions()
Gets a list of elements that contain metadata about
parameters used during code generation. |
protected Class |
getResourceClass(Map capabilities)
|
protected void |
loadParameters(ConfigurationData configuration)
|
void |
projectize(ConfigurationData configuration)
|
protected void |
updateServicesDescriptor(ServicesDescriptorHelper servicesHelper,
Document wsdl,
Map capabilities)
|
Methods inherited from class org.apache.muse.tools.generator.projectizer.AbstractProjectizer |
checkDirectory, checkParentDirectory, copyJars, copyJars, copyStreamCheck, copyTemplate, createClassloadablePath, createJavaSources, createJavaSources, createOverwriteManifest, createRouterEntries, getMetadataFileName, getWsdlFileName, loadString, setTargetDirectory, updatePortType, writeStringtoFile, writeToFileCheck, writeToFileCheck, writeToFileCheck |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_capabilitiesList
protected Map[] _capabilitiesList
_filesMaps
protected Map[] _filesMaps
_descriptor
protected Document _descriptor
_wsdls
protected Document[] _wsdls
_ignoreSets
protected Set[] _ignoreSets
_metadatas
protected MetadataDescriptor[] _metadatas
J2EEAxis2Projectizer
public J2EEAxis2Projectizer()
projectize
public void projectize(ConfigurationData configuration)
throws Exception
- Throws:
Exception
createArtifacts
protected void createArtifacts(File webContentDir)
throws Exception
- Throws:
Exception
createServicesDescriptor
protected void createServicesDescriptor(ServicesDescriptorHelper servicesHelper,
File servicesFile)
throws Exception
- Throws:
Exception
loadParameters
protected void loadParameters(ConfigurationData configuration)
createWSDLFile
protected void createWSDLFile(Document wsdl,
File wsdldir)
throws Exception
- Throws:
Exception
createRMDFile
protected void createRMDFile(MetadataDescriptor rmd,
Document wsdl,
File wsdldir)
throws Exception
- Throws:
Exception
createBuildFile
protected void createBuildFile(File baseTargetDir,
String buildFileResource,
String buildFile)
throws Exception
- Throws:
Exception
updateServicesDescriptor
protected void updateServicesDescriptor(ServicesDescriptorHelper servicesHelper,
Document wsdl,
Map capabilities)
createDescriptor
protected void createDescriptor(Document descriptorDocument,
Document wsdl,
File descriptorFile,
Map capabilities,
String wsdlRelativePath,
int resourceIndex)
throws Exception
- Throws:
Exception
getResourceClass
protected Class getResourceClass(Map capabilities)
getConfigurationDataDescriptions
public ConfigurationDataDescriptor[] getConfigurationDataDescriptions()
- Description copied from interface:
Configurable
- Gets a list of elements that contain metadata about
parameters used during code generation.
- Returns:
- An array that represents the minimum necessary parameters needed
to run this class.
- See Also:
ConfigurationData
,
Analyzer
,
Synthesizer
,
Projectizer
Copyright © 2005-2011 Apache Web Services - Muse. All Rights Reserved.