public class DefaultExtensionModelService extends Object implements InternalExtensionModelService, Initializable
ExtensionModelService.| Constructor and Description |
|---|
DefaultExtensionModelService(MavenClientHolder mavenClientHolder,
org.mule.runtime.container.api.ModuleRepository moduleRepository,
org.mule.runtime.module.artifact.classloader.ArtifactClassLoader containerArtifactClassLoader)
Creates an instance of the service.
|
| Modifier and Type | Method and Description |
|---|---|
void |
init()
Initializes the object.
|
org.mule.runtime.api.meta.model.ExtensionModel |
loadMuleCoreExtensionModel()
Loads the
ExtensionModel for Mule Runtime core components. |
Optional<org.mule.runtime.core.api.util.Pair<org.mule.runtime.module.artifact.classloader.ArtifactClassLoader,org.mule.runtime.api.meta.model.ExtensionModel>> |
loadPairArtifactClassLoaderAndExtensionModel(org.mule.tooling.client.api.descriptors.ArtifactDescriptor pluginDescriptor)
Loads the
ExtensionModel for the given plugin. |
Optional<org.mule.runtime.core.api.util.Pair<org.mule.runtime.module.artifact.classloader.ArtifactClassLoader,org.mule.runtime.api.meta.model.ExtensionModel>> |
loadPairArtifactClassLoaderAndExtensionModel(File file)
Loads the
ExtensionModel for the given plugin. |
public DefaultExtensionModelService(MavenClientHolder mavenClientHolder, org.mule.runtime.container.api.ModuleRepository moduleRepository, org.mule.runtime.module.artifact.classloader.ArtifactClassLoader containerArtifactClassLoader)
public void init()
init in interface Initializablepublic org.mule.runtime.api.meta.model.ExtensionModel loadMuleCoreExtensionModel()
ExtensionModel for Mule Runtime core components.loadMuleCoreExtensionModel in interface InternalExtensionModelServiceExtensionModel for Mule Runtime core components.public Optional<org.mule.runtime.core.api.util.Pair<org.mule.runtime.module.artifact.classloader.ArtifactClassLoader,org.mule.runtime.api.meta.model.ExtensionModel>> loadPairArtifactClassLoaderAndExtensionModel(org.mule.tooling.client.api.descriptors.ArtifactDescriptor pluginDescriptor)
InternalExtensionModelServiceExtensionModel for the given plugin.loadPairArtifactClassLoaderAndExtensionModel in interface InternalExtensionModelServicepluginDescriptor - ArtifactDescriptor referencing to the plugin artifact.ExtensionModel for the plugin along with its class loader or Optional.empty() if the plugin doesn't
have an ExtensionModel.public Optional<org.mule.runtime.core.api.util.Pair<org.mule.runtime.module.artifact.classloader.ArtifactClassLoader,org.mule.runtime.api.meta.model.ExtensionModel>> loadPairArtifactClassLoaderAndExtensionModel(File file)
InternalExtensionModelServiceExtensionModel for the given plugin.loadPairArtifactClassLoaderAndExtensionModel in interface InternalExtensionModelServicefile - ArtifactDescriptor referencing to the plugin artifact file.ExtensionModel for the plugin along with its class loader or Optional.empty() if the plugin doesn't
have an ExtensionModel.Copyright © 2017 MuleSoft, Inc.. All rights reserved.