Files
sbt/launch/interface/src/main/java/xsbti/ScalaProvider.java
T

22 lines
803 B
Java
Raw Normal View History

package xsbti;
2009-08-21 08:12:43 -04:00
import java.io.File;
2009-10-15 18:09:15 -04:00
/** Provides access to the jars and classes for a particular version of Scala.*/
2009-08-21 08:12:43 -04:00
public interface ScalaProvider
{
2009-09-26 02:18:04 -04:00
public Launcher launcher();
2009-10-15 18:09:15 -04:00
/** The version of Scala this instance provides.*/
2009-09-26 02:18:04 -04:00
public String version();
2009-10-15 18:09:15 -04:00
/** A ClassLoader that loads the classes from scala-library.jar and scala-compiler.jar.*/
2009-09-26 02:18:04 -04:00
public ClassLoader loader();
2009-10-15 18:09:15 -04:00
/** Returns the scala-library.jar and scala-compiler.jar for this version of Scala. */
2009-09-26 02:18:04 -04:00
public File[] jars();
public File libraryJar();
public File compilerJar();
2009-10-15 18:09:15 -04:00
/** Creates an application provider that will use 'loader()' as the parent ClassLoader for
2009-10-17 09:48:39 -04:00
* the application given by 'id'. This method will retrieve the application if it has not already
* been retrieved.*/
2009-09-26 02:18:04 -04:00
public AppProvider app(ApplicationID id);
2009-08-21 08:12:43 -04:00
}