public class ExtensionModelServiceCache extends Object implements org.mule.tooling.client.api.Disposable
ExtensionModels| Constructor and Description |
|---|
ExtensionModelServiceCache(String muleVersion) |
| Modifier and Type | Method and Description |
|---|---|
void |
dispose() |
Optional<LoadedExtensionInformation> |
loadExtensionInformation(org.mule.runtime.module.artifact.api.descriptor.BundleDescriptor bundleDescriptor,
InternalExtensionModelService extensionModelService)
Loads an extension model from a
ArtifactDescriptor. |
Optional<LoadedExtensionInformation> |
loadExtensionInformation(File plugin,
InternalExtensionModelService extensionModelService)
Loads an extension model from a
File pointing to the plugin artifact. |
List<org.mule.runtime.api.meta.model.ExtensionModel> |
loadRuntimeExtensionModels(InternalExtensionModelService extensionModelService)
Loads the core extension model.
|
public ExtensionModelServiceCache(String muleVersion)
public Optional<LoadedExtensionInformation> loadExtensionInformation(org.mule.runtime.module.artifact.api.descriptor.BundleDescriptor bundleDescriptor, InternalExtensionModelService extensionModelService)
ArtifactDescriptor.
It uses a cache, so it will only call the extensionModelService if there's a cache miss.
bundleDescriptor - the plugin BundleDescriptorextensionModelService - the service to use to load the ExtensionModel in case of a cache missLoadedExtensionInformation, empty if the plugin does not have an extension modelpublic Optional<LoadedExtensionInformation> loadExtensionInformation(File plugin, InternalExtensionModelService extensionModelService)
File pointing to the plugin artifact.
It uses a cache, so it will only call the extensionModelService if there's a cache miss.
plugin - the plugin descriptorextensionModelService - the service to use to load the ExtensionModel in case of a cache missLoadedExtensionInformation, empty if the plugin does not have an extension modelpublic List<org.mule.runtime.api.meta.model.ExtensionModel> loadRuntimeExtensionModels(InternalExtensionModelService extensionModelService)
extensionModelService - the service to use to load the ExtensionModel in case of a cache misspublic void dispose()
dispose in interface org.mule.tooling.client.api.DisposableCopyright © 2019 MuleSoft, Inc.. All rights reserved.