public class CachedExtensionModelService extends AbstractMuleRuntimeExtensionModelProvider
ExtensionModelService that use a cache for ExtensionModelsextensionModelService| Constructor and Description |
|---|
CachedExtensionModelService(org.mule.maven.client.api.MavenClient mavenClient,
ExtensionModelServiceCache extensionModelServiceCache,
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.maven.client.api.model.BundleDependency bundleDependency)
Gets the
ExtensionModel for the given bundle dependency. |
Optional<LoadedExtensionInformation> |
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. |
resolveBundleDependency, toBundleDescriptorpublic CachedExtensionModelService(org.mule.maven.client.api.MavenClient mavenClient,
ExtensionModelServiceCache extensionModelServiceCache,
InternalExtensionModelService extensionModelService)
mavenClient - MavenClient to resolve artifact descriptors.extensionModelServiceCache - the cache for ExtensionModelsextensionModelService - 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.pluginDescriptor - 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)
MuleRuntimeExtensionModelProviderpluginDescriptor - ArtifactDescriptor referencing to the plugin artifact.public Optional<LoadedExtensionInformation> getExtensionModel(File plugin)
MuleRuntimeExtensionModelProviderExtensionModel for the given plugin.plugin - 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.maven.client.api.model.BundleDependency bundleDependency)
MuleRuntimeExtensionModelProviderExtensionModel for the given bundle dependency.bundleDependency - the plugin BundleDependencyExtensionModel for the plugin or Optional.empty() if the plugin doesn't have an
ExtensionModel.public Optional<String> getMinMuleVersion(File plugin)
MuleRuntimeExtensionModelProviderplugin - File referencing to the plugin artifact.public Optional<String> getExtensionSchema(File plugin)
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)
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 MuleRuntimeExtensionModelProvidergetRuntimeExtensionModels in class AbstractMuleRuntimeExtensionModelProviderList with the ExtensionModels for Mule Runtime core components.Copyright © 2022 MuleSoft, Inc.. All rights reserved.