public class DefaultExtensionModelService extends Object implements InternalExtensionModelService
ExtensionModelService.| Constructor and Description |
|---|
DefaultExtensionModelService(MuleArtifactResourcesRegistry muleArtifactResourcesRegistry) |
| Modifier and Type | Method and Description |
|---|---|
Optional<LoadedExtensionInformation> |
loadExtensionData(org.mule.maven.client.api.model.BundleDescriptor pluginDescriptor)
Loads the
ExtensionModel for a plugin defined by the BundleDescriptor. |
Optional<LoadedExtensionInformation> |
loadExtensionData(File pluginJarFile)
Loads the
ExtensionModel for the given plugin. |
List<org.mule.runtime.api.meta.model.ExtensionModel> |
loadRuntimeExtensionModels()
Loads the
ExtensionModel for Mule Runtime core components. |
org.mule.maven.client.api.model.BundleDescriptor |
readBundleDescriptor(File pluginFile)
Loads the
ArtifactPluginDescriptor for the given plugin. |
public DefaultExtensionModelService(MuleArtifactResourcesRegistry muleArtifactResourcesRegistry)
public List<org.mule.runtime.api.meta.model.ExtensionModel> loadRuntimeExtensionModels()
ExtensionModel for Mule Runtime core components.loadRuntimeExtensionModels in interface InternalExtensionModelServiceExtensionModel for Mule Runtime core components.public Optional<LoadedExtensionInformation> loadExtensionData(File pluginJarFile)
InternalExtensionModelServiceExtensionModel for the given plugin.loadExtensionData in interface InternalExtensionModelServiceExtensionModel for the plugin or Optional.empty() if the plugin doesn't have an ExtensionModel.public org.mule.maven.client.api.model.BundleDescriptor readBundleDescriptor(File pluginFile)
ArtifactPluginDescriptor for the given plugin.readBundleDescriptor in interface InternalExtensionModelServicepluginFile - File referencing to the plugin artifact file (packaged or exploded).BundleDescriptor for the plugin.public Optional<LoadedExtensionInformation> loadExtensionData(org.mule.maven.client.api.model.BundleDescriptor pluginDescriptor)
InternalExtensionModelServiceExtensionModel for a plugin defined by the BundleDescriptor. The artifact should be accessible
by Maven and the configuration defined for the ToolingRuntimeClient.loadExtensionData in interface InternalExtensionModelServicepluginDescriptor - descriptor that defines the coordinates of the plugin.ExtensionModel for the plugin or Optional.empty() if the plugin doesn't have an ExtensionModel.Copyright © 2022 MuleSoft, Inc.. All rights reserved.