org.cruxframework.crux.plugin.gadget.launcher
Class GadgetJettyLauncher

java.lang.Object
  extended by com.google.gwt.core.ext.ServletContainerLauncher
      extended by com.google.gwt.dev.shell.jetty.JettyLauncher
          extended by org.cruxframework.crux.core.server.launcher.CruxJettyLauncher
              extended by org.cruxframework.crux.plugin.gadget.launcher.GadgetJettyLauncher

public class GadgetJettyLauncher
extends org.cruxframework.crux.core.server.launcher.CruxJettyLauncher

Author:
Thiago da Rosa de Bustamante

Nested Class Summary
protected static class GadgetJettyLauncher.WebAppContextWithReload
          GWT class, copied here because it is private A WebAppContext tailored to GWT hosted mode.
 
Nested classes/interfaces inherited from class com.google.gwt.dev.shell.jetty.JettyLauncher
com.google.gwt.dev.shell.jetty.JettyLauncher.JettyRequestLogger, com.google.gwt.dev.shell.jetty.JettyLauncher.JettyServletContainer, com.google.gwt.dev.shell.jetty.JettyLauncher.JettyTreeLogger
 
Field Summary
 
Fields inherited from class org.cruxframework.crux.core.server.launcher.CruxJettyLauncher
__dftConfigurationClasses
 
Constructor Summary
GadgetJettyLauncher()
           
 
Method Summary
protected  org.mortbay.jetty.webapp.WebAppContext getShindigApplication(com.google.gwt.core.ext.TreeLogger logger, File appFile)
          Create a jetty handler for each application located on the appDir directory.
 void setBaseRequestLogLevel(com.google.gwt.core.ext.TreeLogger.Type baseLogLevel)
           
 void setShindigBindAddress(String bindAddress)
           
 com.google.gwt.core.ext.ServletContainer start(com.google.gwt.core.ext.TreeLogger logger, int port, File appRootDir)
           
 
Methods inherited from class org.cruxframework.crux.core.server.launcher.CruxJettyLauncher
createWebAppContext, initializeCruxBridge
 
Methods inherited from class com.google.gwt.dev.shell.jetty.JettyLauncher
createServletContainer, getConnector, getName, isSecure, processArguments, setBindAddress
 
Methods inherited from class com.google.gwt.core.ext.ServletContainerLauncher
getIconBytes, getIconPath
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GadgetJettyLauncher

public GadgetJettyLauncher()
Method Detail

setShindigBindAddress

public void setShindigBindAddress(String bindAddress)

start

public com.google.gwt.core.ext.ServletContainer start(com.google.gwt.core.ext.TreeLogger logger,
                                                      int port,
                                                      File appRootDir)
                                               throws Exception
Overrides:
start in class com.google.gwt.dev.shell.jetty.JettyLauncher
Throws:
Exception

getShindigApplication

protected org.mortbay.jetty.webapp.WebAppContext getShindigApplication(com.google.gwt.core.ext.TreeLogger logger,
                                                                       File appFile)
                                                                throws Exception
Create a jetty handler for each application located on the appDir directory.

Applications must be deployed as an .war package.

Parameters:
logger - devMode logger.
appFile - directory that contains the application to be installed.
Returns:
Throws:
Exception

setBaseRequestLogLevel

public void setBaseRequestLogLevel(com.google.gwt.core.ext.TreeLogger.Type baseLogLevel)
Overrides:
setBaseRequestLogLevel in class com.google.gwt.dev.shell.jetty.JettyLauncher


Copyright © 2014. All rights reserved.