org.fusesource.process.manager.support
Class JarInstaller

java.lang.Object
  extended by org.fusesource.process.manager.support.JarInstaller

public class JarInstaller
extends java.lang.Object


Constructor Summary
JarInstaller(java.util.concurrent.Executor executor)
           
 
Method Summary
protected  void copyDependencies(org.sonatype.aether.graph.DependencyNode dependency, java.io.File libDir)
           
protected  java.io.File getFile(org.sonatype.aether.graph.DependencyNode node)
           
protected  void setMainClass(ProcessConfig config, java.io.File installDir, java.io.File jarFile, int id, java.lang.String mainClass)
          Sets the executable class name in the given jar
 void unpackJarProcess(ProcessConfig config, int id, java.io.File installDir, JarInstallParameters parameters)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JarInstaller

public JarInstaller(java.util.concurrent.Executor executor)
Method Detail

unpackJarProcess

public void unpackJarProcess(ProcessConfig config,
                             int id,
                             java.io.File installDir,
                             JarInstallParameters parameters)
                      throws java.lang.Exception
Throws:
java.lang.Exception

setMainClass

protected void setMainClass(ProcessConfig config,
                            java.io.File installDir,
                            java.io.File jarFile,
                            int id,
                            java.lang.String mainClass)
                     throws java.lang.Exception
Sets the executable class name in the given jar

Throws:
java.lang.Exception

copyDependencies

protected void copyDependencies(org.sonatype.aether.graph.DependencyNode dependency,
                                java.io.File libDir)
                         throws java.io.IOException,
                                org.sonatype.aether.resolution.ArtifactResolutionException
Throws:
java.io.IOException
org.sonatype.aether.resolution.ArtifactResolutionException

getFile

protected java.io.File getFile(org.sonatype.aether.graph.DependencyNode node)
                        throws org.sonatype.aether.resolution.ArtifactResolutionException
Throws:
org.sonatype.aether.resolution.ArtifactResolutionException


Copyright © 2013 Red Hat. All Rights Reserved.