public class DefaultDomainFactory extends AbstractDeployableArtifactFactory<Domain>
| Constructor and Description |
|---|
DefaultDomainFactory(DomainDescriptorFactory domainDescriptorFactory,
DomainManager domainManager,
ClassLoaderRepository classLoaderRepository,
org.mule.runtime.api.service.ServiceRepository serviceRepository,
PluginDependenciesResolver pluginDependenciesResolver,
DomainClassLoaderBuilderFactory domainClassLoaderBuilderFactory,
ExtensionModelLoaderManager extensionModelLoaderManager,
LicenseValidator licenseValidator,
org.mule.runtime.api.lock.LockFactory runtimeLockFactory)
Creates a new domain factory
|
| Modifier and Type | Method and Description |
|---|---|
DeployableArtifactDescriptor |
createArtifactDescriptor(File artifactLocation,
Optional<Properties> deploymentProperties)
Creates the artifact descriptor of the artifact.
|
void |
dispose(DomainWrapper domain) |
protected Domain |
doCreateArtifact(File domainLocation,
Optional<Properties> deploymentProperties)
Creates an instance of
DeployableArtifact |
File |
getArtifactDir() |
void |
start(DomainWrapper domainWrapper) |
createArtifact, getRuntimeLockFactorypublic DefaultDomainFactory(DomainDescriptorFactory domainDescriptorFactory, DomainManager domainManager, ClassLoaderRepository classLoaderRepository, org.mule.runtime.api.service.ServiceRepository serviceRepository, PluginDependenciesResolver pluginDependenciesResolver, DomainClassLoaderBuilderFactory domainClassLoaderBuilderFactory, ExtensionModelLoaderManager extensionModelLoaderManager, LicenseValidator licenseValidator, org.mule.runtime.api.lock.LockFactory runtimeLockFactory)
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.extensionModelLoaderManager - manager capable of resolve extension models. Non null.public File getArtifactDir()
public void dispose(DomainWrapper domain)
public void start(DomainWrapper domainWrapper)
protected Domain doCreateArtifact(File domainLocation, Optional<Properties> deploymentProperties) throws IOException
AbstractDeployableArtifactFactoryDeployableArtifactdoCreateArtifact in class AbstractDeployableArtifactFactory<Domain>domainLocation - the artifact deployment directory.deploymentProperties - deployment propertiesIOException - if there was a problem reading the content of the artifact.public DeployableArtifactDescriptor createArtifactDescriptor(File artifactLocation, Optional<Properties> deploymentProperties)
AbstractDeployableArtifactFactorycreateArtifactDescriptor in class AbstractDeployableArtifactFactory<Domain>artifactLocation - the artifact locationdeploymentProperties - the artifact deployment propertiesCopyright © 2003–2021 MuleSoft, Inc.. All rights reserved.