public class MavenBundleDescriptorLoader extends Object implements BundleDescriptorLoader
BundleDescriptor using Maven to extract the relevant information from a Mule artifact's
file.| Constructor and Description |
|---|
MavenBundleDescriptorLoader() |
| Modifier and Type | Method and Description |
|---|---|
protected File |
getClassLoaderModelDescriptor(File artifactFile) |
String |
getId() |
BundleDescriptor |
load(File artifactFile,
Map<String,Object> attributes,
ArtifactType artifactType)
Looks for the POM file within the current
pluginFolder structure (under
ArtifactDescriptor.MULE_ARTIFACT_FOLDER folder) to retrieve the plugin artifact locator. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsupportsArtifactTypepublic String getId()
getId in interface DescriptorLoader<BundleDescriptor>public BundleDescriptor load(File artifactFile, Map<String,Object> attributes, ArtifactType artifactType) throws InvalidDescriptorLoaderException
pluginFolder structure (under
ArtifactDescriptor.MULE_ARTIFACT_FOLDER folder) to retrieve the plugin artifact locator.load in interface DescriptorLoader<BundleDescriptor>artifactFile - File with the content of the artifact to work with. Non nullattributes - collection of attributes describing the loader. Non null.artifactType - the type of the artifact of the descriptor to be loaded.ArtifactDescriptorCreateException - if the plugin is missing the ArtifactPluginDescriptor.MULE_PLUGIN_POM or
there's an issue while reading that fileInvalidDescriptorLoaderExceptionCopyright © 2003–2017 MuleSoft, Inc.. All rights reserved.