Search in sources :

Example 1 with ApplicationDescriptorFactory

use of org.mule.runtime.module.deployment.impl.internal.application.ApplicationDescriptorFactory in project mule by mulesoft.

the class TestApplicationFactory method createTestApplicationFactory.

public static TestApplicationFactory createTestApplicationFactory(MuleApplicationClassLoaderFactory applicationClassLoaderFactory, DomainManager domainManager, ServiceRepository serviceRepository, ExtensionModelLoaderRepository extensionModelLoaderRepository, ModuleRepository moduleRepository, DescriptorLoaderRepository descriptorLoaderRepository) {
    ArtifactPluginDescriptorFactory artifactPluginDescriptorFactory = new ArtifactPluginDescriptorFactory();
    ArtifactPluginDescriptorLoader artifactPluginDescriptorLoader = new ArtifactPluginDescriptorLoader(artifactPluginDescriptorFactory);
    ApplicationDescriptorFactory applicationDescriptorFactory = new ApplicationDescriptorFactory(artifactPluginDescriptorLoader, descriptorLoaderRepository, ArtifactDescriptorValidatorBuilder.builder());
    final DefaultClassLoaderManager artifactClassLoaderManager = new DefaultClassLoaderManager();
    PluginDependenciesResolver pluginDependenciesResolver = new BundlePluginDependenciesResolver(artifactPluginDescriptorFactory);
    ApplicationClassLoaderBuilderFactory applicationClassLoaderBuilderFactory = new ApplicationClassLoaderBuilderFactory(applicationClassLoaderFactory, new TrackingArtifactClassLoaderFactory<>(artifactClassLoaderManager, new ArtifactPluginClassLoaderFactory()), new DefaultRegionPluginClassLoadersFactory(new ArtifactPluginClassLoaderFactory(), moduleRepository));
    return new TestApplicationFactory(applicationClassLoaderBuilderFactory, applicationDescriptorFactory, domainManager, serviceRepository, extensionModelLoaderRepository, artifactClassLoaderManager, mock(PolicyTemplateClassLoaderBuilderFactory.class), pluginDependenciesResolver, artifactPluginDescriptorLoader);
}
Also used : BundlePluginDependenciesResolver(org.mule.runtime.deployment.model.internal.plugin.BundlePluginDependenciesResolver) PolicyTemplateClassLoaderBuilderFactory(org.mule.runtime.module.deployment.impl.internal.policy.PolicyTemplateClassLoaderBuilderFactory) DefaultRegionPluginClassLoadersFactory(org.mule.runtime.deployment.model.internal.DefaultRegionPluginClassLoadersFactory) ArtifactPluginClassLoaderFactory(org.mule.runtime.deployment.model.api.plugin.ArtifactPluginClassLoaderFactory) ApplicationDescriptorFactory(org.mule.runtime.module.deployment.impl.internal.application.ApplicationDescriptorFactory) ArtifactPluginDescriptorLoader(org.mule.runtime.module.deployment.impl.internal.plugin.ArtifactPluginDescriptorLoader) ApplicationClassLoaderBuilderFactory(org.mule.runtime.module.deployment.impl.internal.application.ApplicationClassLoaderBuilderFactory) 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 ApplicationClassLoaderBuilderFactory (org.mule.runtime.module.deployment.impl.internal.application.ApplicationClassLoaderBuilderFactory)1 ApplicationDescriptorFactory (org.mule.runtime.module.deployment.impl.internal.application.ApplicationDescriptorFactory)1 DefaultClassLoaderManager (org.mule.runtime.module.deployment.impl.internal.artifact.DefaultClassLoaderManager)1 ArtifactPluginDescriptorFactory (org.mule.runtime.module.deployment.impl.internal.plugin.ArtifactPluginDescriptorFactory)1 ArtifactPluginDescriptorLoader (org.mule.runtime.module.deployment.impl.internal.plugin.ArtifactPluginDescriptorLoader)1 PolicyTemplateClassLoaderBuilderFactory (org.mule.runtime.module.deployment.impl.internal.policy.PolicyTemplateClassLoaderBuilderFactory)1