public abstract class AbstractArtifactDeployer extends Object implements ArtifactDeployer
ArtifactDeployer.| Modifier and Type | Field and Description |
|---|---|
protected org.slf4j.Logger |
LOGGER |
| Constructor and Description |
|---|
AbstractArtifactDeployer(ArtifactResources artifactResources,
Supplier<RuntimeToolingService> runtimeToolingService)
Creates an instance of the context.
|
| Modifier and Type | Method and Description |
|---|---|
String |
deploy(String domainId)
Deploys the artifact on Mule Runtime and returns the id.
|
void |
dispose(String id)
Disposes the artifact on Mule Runtime for the given id.
|
protected abstract String |
doInternalDeploy(ArtifactResources artifactResources,
RuntimeToolingService runtimeToolingService,
String domainId) |
protected abstract void |
doInternalDispose(String id,
RuntimeToolingService runtimeToolingService) |
public AbstractArtifactDeployer(ArtifactResources artifactResources, Supplier<RuntimeToolingService> runtimeToolingService)
artifactResources - ArtifactResources of the artifact to be deployed. Non null.runtimeToolingService - RuntimeToolingService for resolving operations against the Mule Runtime. Non null.public final String deploy(String domainId)
ArtifactDeployerdeploy in interface ArtifactDeployerdomainId - String representing the domain identifier.String id generated for the deployed artifact.public final void dispose(String id)
ArtifactDeployerdispose in interface ArtifactDeployerprotected abstract String doInternalDeploy(ArtifactResources artifactResources, RuntimeToolingService runtimeToolingService, String domainId)
protected abstract void doInternalDispose(String id, RuntimeToolingService runtimeToolingService)
Copyright © 2018 MuleSoft, Inc.. All rights reserved.