public class CachedExtensionModelService extends Object implements MuleRuntimeExtensionModelProvider
ExtensionModelService that use a cache for ExtensionModels| Constructor and Description |
|---|
CachedExtensionModelService(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(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.
|
List<org.mule.runtime.api.meta.model.ExtensionModel> |
getMuleExtensionModels()
Gets the
ExtensionModels for the Mule Runtime core components. |
public CachedExtensionModelService(ExtensionModelServiceCache extensionModelServiceCache, InternalExtensionModelService extensionModelService)
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.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<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<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> getMuleExtensionModels()
MuleRuntimeExtensionModelProviderExtensionModels for the Mule Runtime core components.getMuleExtensionModels in interface MuleRuntimeExtensionModelProviderList with the ExtensionModels for Mule Runtime core components.Copyright © 2017 MuleSoft, Inc.. All rights reserved.