public class DefaultMuleRuntimeExtensionModelProvider extends Object implements MuleRuntimeExtensionModelProvider
ExtensionModelService that use delegates to InternalExtensionModelService to resolve ExtensionModels| Constructor and Description |
|---|
DefaultMuleRuntimeExtensionModelProvider(InternalExtensionModelService extensionModelService)
Creates a new instance
|
| Modifier and Type | Method and Description |
|---|---|
Optional<org.mule.runtime.api.meta.model.ExtensionModel> |
getExtensionModel(org.mule.tooling.client.api.descriptors.ArtifactDescriptor pluginDescriptor)
Gets the
ExtensionModel for the given plugin. |
Optional<org.mule.runtime.api.meta.model.ExtensionModel> |
getExtensionModel(org.mule.runtime.module.artifact.api.descriptor.BundleDescriptor bundleDescriptor)
Gets the
ExtensionModel for the given bundle descriptor. |
Optional<org.mule.runtime.api.meta.model.ExtensionModel> |
getExtensionModel(File plugin)
Gets the
ExtensionModel for the given plugin. |
Optional<String> |
getExtensionSchema(org.mule.tooling.client.api.descriptors.ArtifactDescriptor pluginDescriptor)
Gets the schema for the given plugin.
|
Optional<String> |
getExtensionSchema(File plugin)
Gets the schema for the given plugin.
|
Optional<String> |
getMinMuleVersion(org.mule.tooling.client.api.descriptors.ArtifactDescriptor pluginDescriptor)
Gets the min Mule Runtime version for a given plugin.
|
Optional<String> |
getMinMuleVersion(File plugin)
Gets the min Mule Runtime version for a given plugin.
|
List<org.mule.runtime.api.meta.model.ExtensionModel> |
getRuntimeExtensionModels()
Gets the
ExtensionModels for the Mule Runtime core components. |
public DefaultMuleRuntimeExtensionModelProvider(InternalExtensionModelService extensionModelService)
extensionModelService - the service to use to load ExtensionModels in case of a cache miss.public Optional<org.mule.runtime.api.meta.model.ExtensionModel> getExtensionModel(org.mule.tooling.client.api.descriptors.ArtifactDescriptor pluginDescriptor)
MuleRuntimeExtensionModelProviderExtensionModel for the given plugin.getExtensionModel in interface MuleRuntimeExtensionModelProviderpluginDescriptor - ArtifactDescriptor referencing to the plugin artifact.ExtensionModel for the plugin or Optional.empty() if the plugin doesn't have an
ExtensionModel.public Optional<String> getMinMuleVersion(org.mule.tooling.client.api.descriptors.ArtifactDescriptor pluginDescriptor)
MuleRuntimeExtensionModelProvidergetMinMuleVersion in interface MuleRuntimeExtensionModelProviderpluginDescriptor - ArtifactDescriptor referencing to the plugin artifact.public Optional<org.mule.runtime.api.meta.model.ExtensionModel> getExtensionModel(File plugin)
MuleRuntimeExtensionModelProviderExtensionModel for the given plugin.getExtensionModel in interface MuleRuntimeExtensionModelProviderplugin - File referencing to the plugin jar file or the unzipped folder.ExtensionModel for the plugin or Optional.empty() if the plugin doesn't have an
ExtensionModel.public Optional<org.mule.runtime.api.meta.model.ExtensionModel> getExtensionModel(org.mule.runtime.module.artifact.api.descriptor.BundleDescriptor bundleDescriptor)
MuleRuntimeExtensionModelProviderExtensionModel for the given bundle descriptor.getExtensionModel in interface MuleRuntimeExtensionModelProviderbundleDescriptor - the plugin BundleDescriptorExtensionModel for the plugin or Optional.empty() if the plugin doesn't have an
ExtensionModel.public Optional<String> getMinMuleVersion(File plugin)
MuleRuntimeExtensionModelProvidergetMinMuleVersion in interface MuleRuntimeExtensionModelProviderplugin - File referencing to the plugin artifact.public Optional<String> getExtensionSchema(File plugin)
MuleRuntimeExtensionModelProvidergetExtensionSchema in interface MuleRuntimeExtensionModelProviderplugin - File referencing to the plugin jar file or the unzipped folder.String with the schema content or Optional.empty() if the plugin doesn't have an
ExtensionModel.public Optional<String> getExtensionSchema(org.mule.tooling.client.api.descriptors.ArtifactDescriptor pluginDescriptor)
MuleRuntimeExtensionModelProvidergetExtensionSchema in interface MuleRuntimeExtensionModelProviderpluginDescriptor - ArtifactDescriptor referencing to the plugin artifact.String with the schema content or Optional.empty() if the plugin doesn't have an
ExtensionModel.public List<org.mule.runtime.api.meta.model.ExtensionModel> getRuntimeExtensionModels()
MuleRuntimeExtensionModelProviderExtensionModels for the Mule Runtime core components.getRuntimeExtensionModels in interface MuleRuntimeExtensionModelProviderList with the ExtensionModels for Mule Runtime core components.Copyright © 2019 MuleSoft, Inc.. All rights reserved.