Search in sources :

Example 1 with DeployableArtifact

use of org.mule.runtime.deployment.model.api.DeployableArtifact in project mule by mulesoft.

the class DeploymentDirectoryWatcher method stopArtifacts.

private void stopArtifacts(List<? extends DeployableArtifact> artifacts) {
    Collections.reverse(artifacts);
    for (DeployableArtifact artifact : artifacts) {
        try {
            artifact.stop();
            artifact.dispose();
        } catch (Throwable t) {
            logger.error("Error stopping artifact {}", artifact.getArtifactName(), t);
        }
    }
}
Also used : DeployableArtifact(org.mule.runtime.deployment.model.api.DeployableArtifact)

Aggregations

DeployableArtifact (org.mule.runtime.deployment.model.api.DeployableArtifact)1