public class DevShellSPIWrapper extends Object implements DevShellSPI
DevShellSPI.SourceChangeListener, DevShellSPI.SourceWatch, DevShellSPI.SourceWatcher
Constructor and Description |
---|
DevShellSPIWrapper(DevShellSPI wrapped) |
Modifier and Type | Method and Description |
---|---|
URL[] |
applicationClassPath()
Application Classpath.
|
boolean |
isSourceChanged() |
void |
rebuild()
Rebuild the Application sources.
|
URL[] |
runtimeClassPath()
Runtime Classpath.
|
String |
sourceURL(String packageName, String fileName, int lineNumber)
Build Application source file URL if it exists.
|
void |
stop()
Stop.
|
DevShellSPI |
wrapped() |
public DevShellSPIWrapper(DevShellSPI wrapped)
public DevShellSPI wrapped()
public URL[] applicationClassPath()
DevShellSPI
Typically build output directories.
applicationClassPath
in interface
DevShellSPI
public URL[] runtimeClassPath()
DevShellSPI
Typically application dependencies, including Werval.
runtimeClassPath
in interface
DevShellSPI
public String sourceURL(String packageName, String fileName, int lineNumber)
DevShellSPI
sourceURL
in interface
DevShellSPI
packageName
- Package name
fileName
- File name
lineNumber
- Line number
public boolean isSourceChanged()
isSourceChanged
in interface
DevShellSPI
DevShellSPI.rebuild()
, false otherwise
public void rebuild() throws DevShellRebuildException
DevShellSPI
rebuild
in interface
DevShellSPI
DevShellRebuildException
- if something goes wrong, HttpServer implementation should use its
DevShellRebuildException.htmlErrorPage()
methods to get the payload to present to the user browser.
public void stop()
DevShellSPI
stop
in interface
DevShellSPI