public class DefaultDomainFactory extends Object implements ArtifactFactory<Domain>
| Constructor and Description |
|---|
DefaultDomainFactory(DomainDescriptorFactory domainDescriptorFactory,
DomainManager domainManager,
ClassLoaderRepository classLoaderRepository,
ServiceRepository serviceRepository,
PluginDependenciesResolver pluginDependenciesResolver,
DomainClassLoaderBuilderFactory domainClassLoaderBuilderFactory)
Creates a new domain factory
|
| Modifier and Type | Method and Description |
|---|---|
Domain |
createArtifact(File domainLocation)
Creates an Artifact
|
void |
dispose(DomainWrapper domain) |
File |
getArtifactDir() |
void |
setMuleContextListenerFactory(MuleContextListenerFactory muleContextListenerFactory) |
void |
start(DomainWrapper domainWrapper) |
public DefaultDomainFactory(DomainDescriptorFactory domainDescriptorFactory, DomainManager domainManager, ClassLoaderRepository classLoaderRepository, ServiceRepository serviceRepository, PluginDependenciesResolver pluginDependenciesResolver, DomainClassLoaderBuilderFactory domainClassLoaderBuilderFactory)
domainDescriptorFactory - creates descriptors for the new domains. Non null.domainManager - tracks the domains deployed on the container. Non null.classLoaderRepository - contains all the class loaders in the container. Non null.serviceRepository - repository of available services. Non null.pluginDependenciesResolver - resolver for the plugins on which the artifactPluginDescriptor declares it depends. Non null.domainClassLoaderBuilderFactory - creates builders to build the classloaders for each domain. Non null.public void setMuleContextListenerFactory(MuleContextListenerFactory muleContextListenerFactory)
public Domain createArtifact(File domainLocation) throws IOException
ArtifactFactorycreateArtifact in interface ArtifactFactory<Domain>domainLocation - directory where the artifact is locatedIOExceptionpublic File getArtifactDir()
getArtifactDir in interface ArtifactFactory<Domain>public void dispose(DomainWrapper domain)
public void start(DomainWrapper domainWrapper)
Copyright © 2003–2017 MuleSoft, Inc.. All rights reserved.