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.dev.filewatch.FileWatchService fileWatchService,
Object reloadLock) |
Modifier and Type | Method and Description |
---|---|
void |
addChangeListener(scala.Function0<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(ClassLoader parentClassLoader,
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.dev.filewatch.FileWatchService fileWatchService,
java.io.File projectPath,
scala.collection.Seq<scala.Tuple2<String,String>> devSettings,
int httpPort,
Object reloadLock)
Start the Lagom server in dev mode.
|
static Reloader.DevServer |
startNoReload(ClassLoader parentClassLoader,
scala.collection.Seq<java.io.File> dependencyClasspath,
java.io.File buildProjectPath,
scala.collection.Seq<scala.Tuple2<String,String>> devSettings,
int httpPort)
Start the Lagom server without hot reloading
|
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.dev.filewatch.FileWatchService fileWatchService, Object reloadLock)
public static Reloader.DevServer startDevMode(ClassLoader parentClassLoader, 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.dev.filewatch.FileWatchService fileWatchService, java.io.File projectPath, scala.collection.Seq<scala.Tuple2<String,String>> devSettings, int httpPort, Object reloadLock)
public static Reloader.DevServer startNoReload(ClassLoader parentClassLoader, scala.collection.Seq<java.io.File> dependencyClasspath, java.io.File buildProjectPath, scala.collection.Seq<scala.Tuple2<String,String>> devSettings, int httpPort)
public java.io.File projectPath()
projectPath
in interface play.core.BuildLink
public void addChangeListener(scala.Function0<scala.runtime.BoxedUnit> f)
public Object reload()
Since this communicates across classloaders, it must return only simple objects.
reload
in interface play.core.BuildLink
public java.util.Map<String,String> settings()
settings
in interface play.core.BuildLink
public void forceReload()
forceReload
in interface play.core.BuildLink
public Object[] findSource(String className, Integer line)
findSource
in interface play.core.BuildLink
public Object runTask(String task)
runTask
in interface play.core.BuildLink
public void close()
public scala.Option<ClassLoader> getClassLoader()