public final class GenerationContext extends Object
MavenProject, ExtensionManifest and ExtensionModel generates all the common
information that is shared between generators.| Constructor and Description |
|---|
GenerationContext(org.apache.maven.project.MavenProject project,
org.mule.runtime.extension.api.manifest.ExtensionManifest manifest,
org.mule.runtime.extension.api.introspection.ExtensionModel extensionModel,
File outputDirectory) |
| Modifier and Type | Method and Description |
|---|---|
String |
getArtifactName() |
String |
getBundleVersion() |
File |
getClassesDirectory() |
org.mule.runtime.extension.api.Category |
getExtensionCategory() |
org.mule.runtime.extension.api.manifest.ExtensionManifest |
getExtensionManifest() |
org.mule.runtime.extension.api.introspection.ExtensionModel |
getExtensionModel() |
String |
getExtensionPluginName() |
String |
getFeatureId() |
String |
getFeatureJarName() |
org.apache.maven.project.MavenProject |
getMavenProject() |
File |
getOutputDirectory() |
String |
getPluginJarName() |
File |
getPluginOutputDirectory() |
String |
getSymbolicName() |
public GenerationContext(org.apache.maven.project.MavenProject project,
org.mule.runtime.extension.api.manifest.ExtensionManifest manifest,
org.mule.runtime.extension.api.introspection.ExtensionModel extensionModel,
File outputDirectory)
throws IOException
IOExceptionpublic String getExtensionPluginName()
Example:
public String getFeatureId()
Example: 'org.mule.tooling.ui.extension.http.4.0.0'
public String getFeatureJarName()
getFeatureId() and the bundle version.
Example: 'org.mule.tooling.ui.extension.http.4.0.0_4.0.0.201606291903.jar'
public String getPluginJarName()
getSymbolicName() and the bundle
version.
Example: 'org.mule.tooling.ui.contribution.http.4.0.0_4.0.0.201606291903.jar'
public String getSymbolicName()
STUDIO_CONTRIBUTION,
the getExtensionPluginName() and the minimum mule version of the extension.
Example: 'org.mule.tooling.ui.contribution.http.4.0.0'
public String getBundleVersion()
Example: '4.0.0.201606291903'
public String getArtifactName()
Example: 'mule-module-http-4.0-SNAPSHOT.zip'
public org.mule.runtime.extension.api.Category getExtensionCategory()
Category.Categorypublic org.apache.maven.project.MavenProject getMavenProject()
MavenProject of the extension projectpublic org.mule.runtime.extension.api.manifest.ExtensionManifest getExtensionManifest()
ExtensionManifestpublic org.mule.runtime.extension.api.introspection.ExtensionModel getExtensionModel()
ExtensionModelpublic File getPluginOutputDirectory()
File pointing to the plugin output directorypublic File getOutputDirectory()
File pointing to the output/target project directoryCopyright © 2016. All rights reserved.