com.vaadin.terminal.gwt.client
Class SuperDevMode

java.lang.Object
  extended by com.vaadin.terminal.gwt.client.SuperDevMode

public class SuperDevMode
extends Object

Class that enables SuperDevMode using a ?superdevmode parameter in the url.

Since:
7.0
Version:
7.0.0.alpha3
Author:
Vaadin Ltd

Nested Class Summary
static class SuperDevMode.RecompileResult
           
 
Field Summary
protected static String SKIP_RECOMPILE
           
 
Constructor Summary
SuperDevMode()
           
 
Method Summary
protected static void disableDevModeAndReload()
           
static boolean enableBasedOnParameter()
          Enables SuperDevMode if the url contains the "superdevmode" parameter.
protected static String getSuperDevWidgetSetUrl(String widgetsetName, String serverUrl)
           
protected static boolean isSuperDevModeEnabledInModule()
           
protected static boolean isSuperDevModeEnabledInModule(String moduleName)
           
protected static boolean recompileIfNeeded(String serverUrl)
          The URL of the code server.
protected static void redirect(boolean devModeOn)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SKIP_RECOMPILE

protected static final String SKIP_RECOMPILE
See Also:
Constant Field Values
Constructor Detail

SuperDevMode

public SuperDevMode()
Method Detail

getSuperDevWidgetSetUrl

protected static String getSuperDevWidgetSetUrl(String widgetsetName,
                                                String serverUrl)

disableDevModeAndReload

protected static void disableDevModeAndReload()

redirect

protected static void redirect(boolean devModeOn)

recompileIfNeeded

protected static boolean recompileIfNeeded(String serverUrl)
The URL of the code server. The default URL (http://localhost:9876/) will be used if this is empty or null.

Parameters:
serverUrl - The url of the code server or null to use the default
Returns:
true if recompile started, false if we are running in SuperDevMode

isSuperDevModeEnabledInModule

protected static boolean isSuperDevModeEnabledInModule()

isSuperDevModeEnabledInModule

protected static boolean isSuperDevModeEnabledInModule(String moduleName)

enableBasedOnParameter

public static boolean enableBasedOnParameter()
Enables SuperDevMode if the url contains the "superdevmode" parameter.

The caller should not continue initialization of the application if this method returns true. The application will be restarted once compilation is done and then this method will return false.

Returns:
true if a recompile operation has started and the page will be reloaded once it is done, false if no recompilation will be done.


Copyright © 2000-2011 Vaadin Ltd. All Rights Reserved.