public class IsolatedClassLoaderExtensionsManagerConfigurationBuilder extends 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.serviceConfigurators
Constructor and Description |
---|
IsolatedClassLoaderExtensionsManagerConfigurationBuilder(List<ArtifactClassLoader> pluginsClassLoaders)
Creates an instance of the builder with the list of plugin class loaders.
|
Modifier and Type | Method and Description |
---|---|
protected void |
doConfigure(MuleContext muleContext)
Goes through the list of plugins
ArtifactClassLoader s 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() |
addServiceConfigurator, applyLifecycle, configure
public IsolatedClassLoaderExtensionsManagerConfigurationBuilder(List<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(MuleContext muleContext) throws Exception
ArtifactClassLoader
s 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 AbstractConfigurationBuilder
muleContext
- The current MuleContext
Exception
- if an error occurs while registering an extension of calling methods using reflection.public void loadExtensionModels()
Copyright © 2018. All rights reserved.