org.mule.module.launcher
Class ArtifactArchiveInstaller

java.lang.Object
  extended by org.mule.module.launcher.ArtifactArchiveInstaller

public class ArtifactArchiveInstaller
extends Object

Installer for mule artifacts inside the mule container directories.


Field Summary
protected static String ANCHOR_FILE_BLURB
           
protected  Log logger
           
 
Constructor Summary
ArtifactArchiveInstaller(File artifactParentDir)
           
 
Method Summary
 void desinstallArtifact(String artifactName)
          Desintalls an artifact from the mule container installation.
 String installArtifact(URL artifactUrl)
          Installs an artifact in the mule container.
 void installExplodedArtifact(String artifactName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ANCHOR_FILE_BLURB

protected static final String ANCHOR_FILE_BLURB
See Also:
Constant Field Values

logger

protected final transient Log logger
Constructor Detail

ArtifactArchiveInstaller

public ArtifactArchiveInstaller(File artifactParentDir)
Method Detail

installArtifact

public String installArtifact(URL artifactUrl)
                       throws IOException
Installs an artifact in the mule container. Created the artifact directory and the anchor file related.

Parameters:
artifactUrl - URL of the artifact to install. It must be present in the artifact directory as a zip file.
Returns:
the name of the installed artifact.
Throws:
IOException - in case there was an error reading from the artifact or writing to the artifact folder.

desinstallArtifact

public void desinstallArtifact(String artifactName)
Desintalls an artifact from the mule container installation. It will remove the artifact folder and the anchor file related

Parameters:
artifactName - name of the artifact to be uninstall.

installExplodedArtifact

public void installExplodedArtifact(String artifactName)
                             throws IOException
Throws:
IOException


Copyright © 2003-2014 MuleSoft, Inc.. All Rights Reserved.