D - the type of the DeployableArtifactDescriptorT - the type of the DeployableArtifactpublic abstract class AbstractDeployableArtifactFactory<D extends DeployableArtifactDescriptor,T extends DeployableArtifact<D>> extends Object implements ArtifactFactory<D,T>
DeployableArtifact factories.
Handles license validation for the artifact plugins.| Constructor and Description |
|---|
AbstractDeployableArtifactFactory(LicenseValidator licenseValidator,
org.mule.runtime.api.lock.LockFactory runtimeLockFactory,
org.mule.runtime.api.memory.management.MemoryManagementService memoryManagementService,
ArtifactConfigurationProcessor artifactConfigurationProcessor)
Creates a new
AbstractDeployableArtifactFactory |
| Modifier and Type | Method and Description |
|---|---|
T |
createArtifact(File artifactDir,
Optional<Properties> properties)
Creates an Artifact
|
abstract DeployableArtifactDescriptor |
createArtifactDescriptor(File artifactLocation,
Optional<Properties> deploymentProperties)
Creates the artifact descriptor of the artifact.
|
protected abstract T |
doCreateArtifact(File artifactDir,
Optional<Properties> properties)
Creates an instance of
DeployableArtifact |
ArtifactConfigurationProcessor |
getArtifactConfigurationProcessor() |
org.mule.runtime.api.memory.management.MemoryManagementService |
getMemoryManagementService() |
org.mule.runtime.api.lock.LockFactory |
getRuntimeLockFactory() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetArtifactDirpublic AbstractDeployableArtifactFactory(LicenseValidator licenseValidator, org.mule.runtime.api.lock.LockFactory runtimeLockFactory, org.mule.runtime.api.memory.management.MemoryManagementService memoryManagementService, ArtifactConfigurationProcessor artifactConfigurationProcessor)
AbstractDeployableArtifactFactorylicenseValidator - the license validator to use for plugins.runtimeLockFactory - LockFactory for Runtime, a unique and shared lock factory to be used between
different artifacts.memoryManagementService - the memory management service.artifactConfigurationProcessor - the processor to use for building the application model.public T createArtifact(File artifactDir, Optional<Properties> properties) throws IOException
ArtifactFactorycreateArtifact in interface ArtifactFactory<D extends DeployableArtifactDescriptor,T extends DeployableArtifact<D>>properties - deployment properties for configuration managementIOExceptionprotected abstract T doCreateArtifact(File artifactDir, Optional<Properties> properties) throws IOException
DeployableArtifactartifactDir - the artifact deployment directory.properties - deployment propertiesIOException - if there was a problem reading the content of the artifact.public abstract DeployableArtifactDescriptor createArtifactDescriptor(File artifactLocation, Optional<Properties> deploymentProperties)
artifactLocation - the artifact locationdeploymentProperties - the artifact deployment propertiespublic org.mule.runtime.api.lock.LockFactory getRuntimeLockFactory()
LockFactory associated to the Runtime.public org.mule.runtime.api.memory.management.MemoryManagementService getMemoryManagementService()
public ArtifactConfigurationProcessor getArtifactConfigurationProcessor()
Copyright © 2003–2022 MuleSoft, Inc.. All rights reserved.