Search in sources :

Example 1 with DomainDescriptorFactory

use of org.mule.runtime.module.deployment.impl.internal.domain.DomainDescriptorFactory in project mule by mulesoft.

the class TestDomainFactory method createDomainFactory.

public static TestDomainFactory createDomainFactory(DomainClassLoaderFactory domainClassLoaderFactory, ArtifactClassLoader containerClassLoader, ServiceRepository serviceRepository, ModuleRepository moduleRepository, DescriptorLoaderRepository descriptorLoaderRepository) {
    ArtifactPluginDescriptorFactory artifactPluginDescriptorFactory = new ArtifactPluginDescriptorFactory();
    ArtifactPluginDescriptorLoader artifactPluginDescriptorLoader = new ArtifactPluginDescriptorLoader(artifactPluginDescriptorFactory);
    DomainDescriptorFactory domainDescriptorFactory = new DomainDescriptorFactory(artifactPluginDescriptorLoader, descriptorLoaderRepository, ArtifactDescriptorValidatorBuilder.builder());
    final DefaultClassLoaderManager artifactClassLoaderManager = new DefaultClassLoaderManager();
    PluginDependenciesResolver pluginDependenciesResolver = new BundlePluginDependenciesResolver(artifactPluginDescriptorFactory);
    DomainClassLoaderBuilderFactory domainClassLoaderBuilderFactory = new DomainClassLoaderBuilderFactory(containerClassLoader, domainClassLoaderFactory, new DefaultRegionPluginClassLoadersFactory(new TrackingArtifactClassLoaderFactory<>(artifactClassLoaderManager, new ArtifactPluginClassLoaderFactory()), moduleRepository));
    return new TestDomainFactory(artifactClassLoaderManager, serviceRepository, domainDescriptorFactory, pluginDependenciesResolver, domainClassLoaderBuilderFactory, new MuleExtensionModelLoaderManager(containerClassLoader));
}
Also used : BundlePluginDependenciesResolver(org.mule.runtime.deployment.model.internal.plugin.BundlePluginDependenciesResolver) DefaultRegionPluginClassLoadersFactory(org.mule.runtime.deployment.model.internal.DefaultRegionPluginClassLoadersFactory) TrackingArtifactClassLoaderFactory(org.mule.runtime.module.artifact.api.classloader.TrackingArtifactClassLoaderFactory) ArtifactPluginClassLoaderFactory(org.mule.runtime.deployment.model.api.plugin.ArtifactPluginClassLoaderFactory) ArtifactPluginDescriptorLoader(org.mule.runtime.module.deployment.impl.internal.plugin.ArtifactPluginDescriptorLoader) DomainDescriptorFactory(org.mule.runtime.module.deployment.impl.internal.domain.DomainDescriptorFactory) DomainClassLoaderBuilderFactory(org.mule.runtime.module.deployment.impl.internal.domain.DomainClassLoaderBuilderFactory) MuleExtensionModelLoaderManager(org.mule.runtime.module.deployment.impl.internal.plugin.MuleExtensionModelLoaderManager) ArtifactPluginDescriptorFactory(org.mule.runtime.module.deployment.impl.internal.plugin.ArtifactPluginDescriptorFactory) DefaultClassLoaderManager(org.mule.runtime.module.deployment.impl.internal.artifact.DefaultClassLoaderManager) PluginDependenciesResolver(org.mule.runtime.deployment.model.internal.plugin.PluginDependenciesResolver) BundlePluginDependenciesResolver(org.mule.runtime.deployment.model.internal.plugin.BundlePluginDependenciesResolver)

Aggregations

ArtifactPluginClassLoaderFactory (org.mule.runtime.deployment.model.api.plugin.ArtifactPluginClassLoaderFactory)1 DefaultRegionPluginClassLoadersFactory (org.mule.runtime.deployment.model.internal.DefaultRegionPluginClassLoadersFactory)1 BundlePluginDependenciesResolver (org.mule.runtime.deployment.model.internal.plugin.BundlePluginDependenciesResolver)1 PluginDependenciesResolver (org.mule.runtime.deployment.model.internal.plugin.PluginDependenciesResolver)1 TrackingArtifactClassLoaderFactory (org.mule.runtime.module.artifact.api.classloader.TrackingArtifactClassLoaderFactory)1 DefaultClassLoaderManager (org.mule.runtime.module.deployment.impl.internal.artifact.DefaultClassLoaderManager)1 DomainClassLoaderBuilderFactory (org.mule.runtime.module.deployment.impl.internal.domain.DomainClassLoaderBuilderFactory)1 DomainDescriptorFactory (org.mule.runtime.module.deployment.impl.internal.domain.DomainDescriptorFactory)1 ArtifactPluginDescriptorFactory (org.mule.runtime.module.deployment.impl.internal.plugin.ArtifactPluginDescriptorFactory)1 ArtifactPluginDescriptorLoader (org.mule.runtime.module.deployment.impl.internal.plugin.ArtifactPluginDescriptorLoader)1 MuleExtensionModelLoaderManager (org.mule.runtime.module.deployment.impl.internal.plugin.MuleExtensionModelLoaderManager)1