public class IsolatedClassLoaderExtensionsManagerConfigurationBuilder
extends org.mule.runtime.core.api.config.builders.AbstractConfigurationBuilder
ConfigurationBuilder that creates an
ExtensionManager. It reads the extension manifest file using the extension class
loader that loads the extension annotated class and register the extension to the manager.| Constructor and Description |
|---|
IsolatedClassLoaderExtensionsManagerConfigurationBuilder(List<org.mule.runtime.module.artifact.api.classloader.ArtifactClassLoader> pluginsClassLoaders)
Creates an instance of the builder with the list of plugin class loaders.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
doConfigure(org.mule.runtime.core.api.MuleContext muleContext)
Goes through the list of plugins
ArtifactClassLoaders to check if they have an extension descriptor and if they do it
will parse it and register the extension into the ExtensionManager
It has to use reflection to access these classes due to the current execution of this method would be with the application
ArtifactClassLoader and the list of plugin ArtifactClassLoader was instantiated with the Launcher
ClassLoader so casting won't work here. |
void |
loadExtensionModels() |
public IsolatedClassLoaderExtensionsManagerConfigurationBuilder(List<org.mule.runtime.module.artifact.api.classloader.ArtifactClassLoader> pluginsClassLoaders)
ArtifactClassLoader has a extension
descriptor it will be registered as an extension if not it is assumed that it is not an extension plugin. The extension will
be loaded and registered with its corresponding class loader in order to get access to the isolated ClassLoader
defined for the extension.pluginsClassLoaders - the list of ArtifactClassLoader created for each plugin found in the dependencies (either
plugin or extension plugin).protected void doConfigure(org.mule.runtime.core.api.MuleContext muleContext)
throws Exception
ArtifactClassLoaders to check if they have an extension descriptor and if they do it
will parse it and register the extension into the ExtensionManager
It has to use reflection to access these classes due to the current execution of this method would be with the application
ArtifactClassLoader and the list of plugin ArtifactClassLoader was instantiated with the Launcher
ClassLoader so casting won't work here.doConfigure in class org.mule.runtime.core.api.config.builders.AbstractConfigurationBuildermuleContext - The current MuleContextException - if an error occurs while registering an extension of calling methods using reflection.public void loadExtensionModels()
Copyright © 2003–2019 MuleSoft, Inc.. All rights reserved.