co.cask.tigon.app.program
Class Programs

java.lang.Object
  extended by co.cask.tigon.app.program.Programs

public final class Programs
extends Object

Factory helper to create Program.


Method Summary
static Program create(org.apache.twill.filesystem.Location location)
           
static Program create(org.apache.twill.filesystem.Location location, ClassLoader classLoader)
          Creates a Program without expanding the location jar.
static Program createWithUnpack(org.apache.twill.filesystem.Location location, File destinationUnpackedJarDir)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createWithUnpack

public static Program createWithUnpack(org.apache.twill.filesystem.Location location,
                                       File destinationUnpackedJarDir)
                                throws IOException
Throws:
IOException

create

public static Program create(org.apache.twill.filesystem.Location location,
                             ClassLoader classLoader)
                      throws IOException
Creates a Program without expanding the location jar. The Program.getClassLoader() would not function from the program this method returns.

Throws:
IOException

create

public static Program create(org.apache.twill.filesystem.Location location)
                      throws IOException
Throws:
IOException


Copyright © 2014 Cask Data, Inc. Licensed under the Apache License, Version 2.0.