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 |
|---|---|
String |
getId() |
BundleDescriptor |
load(File artifactFolder,
Map<String,Object> attributes)
Looks for the POM file within the current
pluginFolder structure (under ArtifactPluginDescriptor.MULE_ARTIFACT_FOLDER folder)
to retrieve the plugin artifact locator. |
public String getId()
getId in interface DescriptorLoader<BundleDescriptor>public BundleDescriptor load(File artifactFolder, Map<String,Object> attributes) throws InvalidDescriptorLoaderException
pluginFolder structure (under ArtifactPluginDescriptor.MULE_ARTIFACT_FOLDER folder)
to retrieve the plugin artifact locator.load in interface DescriptorLoader<BundleDescriptor>artifactFolder - File where the current plugin to work with.attributes - collection of attributes describing the loader. Non null.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.