com.vaadin.base.devserver.startup.
Class DevModeInitializer
All Implemented Interfaces:
Initializer for starting node updaters as well as the dev mode server.
For internal use only. May be renamed or removed in a future release.
Since:
2.0
See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic DevModeHandler
initDevModeHandler
(Set<Class<?>> classes, VaadinContext context) Deprecated, for removal: This API element is subject to removal in a future version.
static DevModeHandler
initDevModeHandler
(Set<Class<?>> classes, VaadinContext context, Executor taskExecutor) Initialize the devmode server if not in production mode or compatibility mode.
-
Constructor Details
-
DevModeInitializer
public DevModeInitializer()
-
-
Method Details
-
initDevModeHandler
@Deprecated(forRemoval=true) public static DevModeHandler initDevModeHandler(Set<Class<?>> classes, VaadinContext context) throws VaadinInitializerException Deprecated, for removal: This API element is subject to removal in a future version.useinitDevModeHandler(Set, VaadinContext, Executor)
providing a custom executor.Initialize the devmode server if not in production mode or compatibility mode.
initDevModeHandler(Set, VaadinContext, Executor)
and provide a a custom executor if initialization starts long-running tasks.Parameters:
classes
- classes to check for npm- and js modulescontext
- VaadinContext we are running inReturns:
the initialized dev mode handler or
null
if none was createdThrows:
VaadinInitializerException
- if dev mode can't be initialized -
initDevModeHandler
public static DevModeHandler initDevModeHandler(Set<Class<?>> classes, VaadinContext context, Executor taskExecutor) throws VaadinInitializerException Initialize the devmode server if not in production mode or compatibility mode.
Parameters:
classes
- classes to check for npm- and js modulescontext
- VaadinContext we are running intaskExecutor
- the executor to use for asynchronous executionReturns:
the initialized dev mode handler or
null
if none was createdThrows:
VaadinInitializerException
- if dev mode can't be initialized
-
initDevModeHandler(Set, VaadinContext, Executor)
providing a custom executor.