public MuleDeploymentService(PluginClassLoaderManager pluginClassLoaderManager)
{
DomainClassLoaderRepository domainClassLoaderRepository = new MuleDomainClassLoaderRepository();
ApplicationClassLoaderFactory applicationClassLoaderFactory = new MuleApplicationClassLoaderFactory(domainClassLoaderRepository, new DefaultNativeLibraryFinderFactory());
applicationClassLoaderFactory = new CompositeApplicationClassLoaderFactory(applicationClassLoaderFactory, pluginClassLoaderManager);
DefaultDomainFactory domainFactory = new DefaultDomainFactory(domainClassLoaderRepository);
domainFactory.setDeploymentListener(domainDeploymentListener);
DefaultApplicationFactory applicationFactory = new DefaultApplicationFactory(applicationClassLoaderFactory, domainFactory);
applicationFactory.setDeploymentListener(applicationDeploymentListener);