public class DefaultDomainFactory extends AbstractDeployableArtifactFactory<DomainDescriptor,Domain>
| Constructor and Description |
|---|
DefaultDomainFactory(DomainDescriptorFactory domainDescriptorFactory,
org.mule.runtime.module.artifact.activation.api.descriptor.DeployableArtifactDescriptorFactory deployableArtifactDescriptorFactory,
DomainManager domainManager,
ClassLoaderRepository classLoaderRepository,
org.mule.runtime.api.service.ServiceRepository serviceRepository,
DomainClassLoaderBuilderFactory domainClassLoaderBuilderFactory,
org.mule.runtime.module.artifact.activation.api.extension.discovery.ExtensionModelLoaderRepository extensionModelLoaderRepository,
LicenseValidator licenseValidator,
org.mule.runtime.api.lock.LockFactory runtimeLockFactory,
org.mule.runtime.api.memory.management.MemoryManagementService memoryManagementService,
ArtifactConfigurationProcessor artifactConfigurationProcessor)
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, createDeployableProjectModel, getArtifactConfigurationProcessor, getMemoryManagementService, getRuntimeLockFactorypublic DefaultDomainFactory(DomainDescriptorFactory domainDescriptorFactory, org.mule.runtime.module.artifact.activation.api.descriptor.DeployableArtifactDescriptorFactory deployableArtifactDescriptorFactory, DomainManager domainManager, ClassLoaderRepository classLoaderRepository, org.mule.runtime.api.service.ServiceRepository serviceRepository, DomainClassLoaderBuilderFactory domainClassLoaderBuilderFactory, org.mule.runtime.module.artifact.activation.api.extension.discovery.ExtensionModelLoaderRepository extensionModelLoaderRepository, LicenseValidator licenseValidator, org.mule.runtime.api.lock.LockFactory runtimeLockFactory, org.mule.runtime.api.memory.management.MemoryManagementService memoryManagementService, ArtifactConfigurationProcessor artifactConfigurationProcessor)
domainDescriptorFactory - creates descriptors for the new domains in case of a lightweight deployment. Non
null.deployableArtifactDescriptorFactory - 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.domainClassLoaderBuilderFactory - creates builders to build the classloaders for each domain. Non null.extensionModelLoaderRepository - manager capable of resolve extension models. Non null.artifactConfigurationProcessor - the processor to use for building the application model. 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<DomainDescriptor,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<DomainDescriptor,Domain>artifactLocation - the artifact locationdeploymentProperties - the artifact deployment propertiesCopyright © 2003–2023 MuleSoft, Inc.. All rights reserved.