auto detect Scala version for non-cross-versioned launcher app

This commit is contained in:
Mark Harrah
2012-02-04 21:10:30 -05:00
parent 7b31db4171
commit dd4efec03c
15 changed files with 285 additions and 176 deletions
@@ -9,6 +9,7 @@ public interface AppProvider
/** The ID of the application that will be created by 'newMain' or 'mainClass'.*/
public ApplicationID id();
public ClassLoader loader();
/** Loads the class for the entry point for the application given by 'id'. This method will return the same class
* every invocation. That is, the ClassLoader is not recreated each call.*/
public Class<? extends AppMain> mainClass();
@@ -7,6 +7,7 @@ public interface Launcher
public static final int InterfaceVersion = 1;
public ScalaProvider getScala(String version);
public ScalaProvider getScala(String version, String reason);
public AppProvider app(ApplicationID id, String version);
public ClassLoader topLoader();
public GlobalLock globalLock();
public File bootDirectory();