Class SuperDevMode


  • public class SuperDevMode
    extends Object
    Class that enables SuperDevMode using a ?superdevmode parameter in the url.
    Since:
    7.0
    Author:
    Vaadin Ltd
    • 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.