use of org.mule.test.runner.api.IsolatedClassLoaderExtensionsManagerConfigurationBuilder in project mule by mulesoft.
the class ArtifactFunctionalTestCase method setPluginClassLoaders.
@PluginClassLoadersAware
private static final void setPluginClassLoaders(List<ArtifactClassLoader> artifactClassLoaders) {
if (artifactClassLoaders == null) {
throw new IllegalArgumentException("A null value cannot be set as the plugins class loaders");
}
if (pluginClassLoaders != null) {
throw new IllegalStateException("Plugin class loaders were already set, it cannot be set again");
}
pluginClassLoaders = artifactClassLoaders;
if (!pluginClassLoaders.isEmpty()) {
extensionsManagerConfigurationBuilder = new IsolatedClassLoaderExtensionsManagerConfigurationBuilder(pluginClassLoaders);
extensionsManagerConfigurationBuilder.loadExtensionModels();
}
}
Aggregations