public class Reloader
extends Object
implements play.core.BuildLink
| Modifier and Type | Class and Description |
|---|---|
static class |
Reloader.CompileFailure |
static class |
Reloader.CompileFailure$ |
static interface |
Reloader.CompileResult |
static class |
Reloader.CompileSuccess |
static class |
Reloader.CompileSuccess$ |
static interface |
Reloader.DevServer
Play dev server
|
static class |
Reloader.Source |
static class |
Reloader.Source$ |
| Constructor and Description |
|---|
Reloader(scala.Function0<Reloader.CompileResult> reloadCompile,
ClassLoader baseLoader,
java.io.File projectPath,
scala.collection.Seq<scala.Tuple2<String,String>> devSettings,
scala.collection.Seq<java.io.File> monitoredFiles,
play.runsupport.FileWatchService fileWatchService) |
| Modifier and Type | Method and Description |
|---|---|
void |
addChangeListener(scala.Function1<scala.runtime.BoxedUnit,scala.runtime.BoxedUnit> f) |
void |
close() |
Object[] |
findSource(String className,
Integer line) |
void |
forceReload() |
scala.Option<ClassLoader> |
getClassLoader() |
java.io.File |
projectPath() |
Object |
reload()
Contrary to its name, this doesn't necessarily reload the app.
|
Object |
runTask(String task) |
java.util.Map<String,String> |
settings() |
static Reloader.DevServer |
startDevMode(scala.collection.Seq<java.io.File> dependencyClasspath,
scala.Function0<Reloader.CompileResult> reloadCompile,
scala.Function1<ClassLoader,ClassLoader> classLoaderDecorator,
scala.collection.Seq<java.io.File> monitoredFiles,
play.runsupport.FileWatchService fileWatchService,
java.io.File projectPath,
scala.collection.Seq<scala.Tuple2<String,String>> devSettings,
int httpPort)
Start the Lagom server in dev mode.
|
public Reloader(scala.Function0<Reloader.CompileResult> reloadCompile, ClassLoader baseLoader, java.io.File projectPath, scala.collection.Seq<scala.Tuple2<String,String>> devSettings, scala.collection.Seq<java.io.File> monitoredFiles, play.runsupport.FileWatchService fileWatchService)
public static Reloader.DevServer startDevMode(scala.collection.Seq<java.io.File> dependencyClasspath, scala.Function0<Reloader.CompileResult> reloadCompile, scala.Function1<ClassLoader,ClassLoader> classLoaderDecorator, scala.collection.Seq<java.io.File> monitoredFiles, play.runsupport.FileWatchService fileWatchService, java.io.File projectPath, scala.collection.Seq<scala.Tuple2<String,String>> devSettings, int httpPort)
public java.io.File projectPath()
projectPath in interface play.core.BuildLinkpublic void addChangeListener(scala.Function1<scala.runtime.BoxedUnit,scala.runtime.BoxedUnit> f)
public Object reload()
Since this communicates across classloaders, it must return only simple objects.
reload in interface play.core.BuildLinkpublic java.util.Map<String,String> settings()
settings in interface play.core.BuildLinkpublic void forceReload()
forceReload in interface play.core.BuildLinkpublic Object[] findSource(String className,
Integer line)
findSource in interface play.core.BuildLinkpublic Object runTask(String task)
runTask in interface play.core.BuildLinkpublic void close()
public scala.Option<ClassLoader> getClassLoader()