
public class DevMode extends DevModeBase implements RestartServerCallback
main(String[]).| Modifier and Type | Class and Description |
|---|---|
protected static class |
DevMode.ArgHandlerServer
Handles the -server command line flag.
|
protected static class |
DevMode.ArgHandlerStartupURLs
Handles a startup url that can be passed on the command line.
|
protected static class |
DevMode.ArgHandlerSuperDevMode
Runs the superdev-mode code server instead of classic one.
|
protected static class |
DevMode.ArgProcessor
The argument processor.
|
static interface |
DevMode.HostedModeOptions
Handles the -superDevMode command line flag.
|
protected static class |
DevMode.HostedModeOptionsImpl
Concrete class to implement all hosted mode options.
|
protected static interface |
DevMode.OptionSuperDevMode
Determines whether to start the code server or not.
|
DevModeBase.ArgHandlerBindAddress, DevModeBase.ArgHandlerBlacklist, DevModeBase.ArgHandlerCodeServerPort, DevModeBase.ArgHandlerLogDir, DevModeBase.ArgHandlerNoServerFlag, DevModeBase.ArgHandlerPort, DevModeBase.ArgHandlerRemoteUI, DevModeBase.ArgHandlerWhitelist, DevModeBase.HostedModeBaseOptions, DevModeBase.HostedModeBaseOptionsImpl, DevModeBase.OptionBindAddress, DevModeBase.OptionCodeServerPort, DevModeBase.OptionLogDir, DevModeBase.OptionNoServer, DevModeBase.OptionPort, DevModeBase.OptionRemoteUI, DevModeBase.OptionStartupURLs, DevModeBase.UiBrowserWidgetHostImpl| Modifier and Type | Field and Description |
|---|---|
protected CodeServerListener |
listener |
protected DevMode.HostedModeOptions |
options
Hiding super field because it's actually the same object, just with a stronger type.
|
baseLogLevelForUI, browserHost, compilerContext, compilerContextBuilder, connectAddress, isHttps, ui| Modifier | Constructor and Description |
|---|---|
protected |
DevMode()
Default constructor for testing; no public API yet.
|
| Modifier and Type | Method and Description |
|---|---|
protected DevMode.HostedModeOptions |
createOptions() |
protected void |
doShutDownServer() |
protected boolean |
doSlowStartup()
Perform any slower startup tasks, such as loading modules.
|
protected boolean |
doStartup() |
protected int |
doStartUpServer() |
protected void |
ensureCodeServerListener() |
protected String |
getWebServerName() |
protected void |
inferStartupUrls()
Add any plausible HTML files which might be used as startup URLs.
|
protected ModuleDef |
loadModule(TreeLogger logger,
String moduleName,
boolean refresh)
Load a module.
|
static void |
main(String[] args)
Startup development mode.
|
protected URL |
makeStartupUrl(String url) |
void |
onRestartServer(TreeLogger logger)
Called by the UI on a restart server event.
|
protected void |
produceOutput(TreeLogger logger,
StandardLinkerContext linkerStack,
ArtifactSet artifacts,
ModuleDef module,
boolean isRelink) |
protected void |
warnAboutNoStartupUrls()
Log a warning explaining that no startup URLs were specified and no
plausible startup URLs were found.
|
addStartupURL, checkForUpdatesInterval, doCreateShellModuleSpaceHost, doStartup, getBaseLogLevelForUI, getHost, getPort, getTopLogger, isHeadless, link, normalizeURL, onDone, randomString, run, setDone, setHeadless, setPort, setRunTomcat, shutDown, startUpprotected CodeServerListener listener
protected final DevMode.HostedModeOptions options
public static void main(String[] args)
args - command line argumentspublic void onRestartServer(TreeLogger logger)
onRestartServer in interface RestartServerCallbacklogger - TreeLogger for any logging requiredprotected DevMode.HostedModeOptions createOptions()
createOptions in class DevModeBaseprotected void doShutDownServer()
doShutDownServer in class DevModeBaseprotected boolean doSlowStartup()
DevModeBaseDevModeBase.doStartup() so that the UI can be updated as soon as possible
and the web server can be started earlier.doSlowStartup in class DevModeBaseprotected boolean doStartup()
doStartup in class DevModeBaseprotected int doStartUpServer()
doStartUpServer in class DevModeBaseprotected void ensureCodeServerListener()
ensureCodeServerListener in class DevModeBaseprotected String getWebServerName()
protected void inferStartupUrls()
DevModeBaseoptions.addStartupUrl(url).inferStartupUrls in class DevModeBaseprotected ModuleDef loadModule(TreeLogger logger, String moduleName, boolean refresh) throws UnableToCompleteException
DevModeBaseloadModule in class DevModeBaselogger - TreeLogger to usemoduleName - name of the module to loadrefresh - if true, refresh the module from diskUnableToCompleteExceptionprotected URL makeStartupUrl(String url) throws UnableToCompleteException
makeStartupUrl in class DevModeBaseUnableToCompleteExceptionprotected void produceOutput(TreeLogger logger, StandardLinkerContext linkerStack, ArtifactSet artifacts, ModuleDef module, boolean isRelink) throws UnableToCompleteException
produceOutput in class DevModeBaseUnableToCompleteExceptionprotected void warnAboutNoStartupUrls()
DevModeBasewarnAboutNoStartupUrls in class DevModeBaseCopyright © 2018. All rights reserved.