com.vaadin.base.devserver.
Class DevModeHandlerManagerImpl
- java.lang.Object
-
- com.vaadin.base.devserver.DevModeHandlerManagerImpl
-
All Implemented Interfaces:
public class DevModeHandlerManagerImpl extends Object implements DevModeHandlerManager
Provides API to access to the
DevModeHandler
instance by aVaadinService
.For internal use only. May be renamed or removed in a future release.
Since:
Author:
Vaadin Ltd
-
-
Constructor Summary
Constructors Constructor and Description DevModeHandlerManagerImpl()
-
Method Summary
All Methods Modifier and Type Method and Description DevModeHandler
getDevModeHandler()
Returns a
DevModeHandler
instance for the givenservice
.Class<?>[]
getHandlesTypes()
A dev mode handler implementation is interested in certain annotations to be be scanned from the class path and passed to the
DevModeHandlerManager.initDevModeHandler(Set, VaadinContext)
initializer.void
initDevModeHandler(Set<Class<?>> classes, VaadinContext context)
Starts up a new
DevModeHandler
.boolean
isDevModeAlreadyStarted(VaadinContext context)
Returns whether
DevModeHandler
has been already started or not.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.vaadin.flow.internal.DevModeHandlerManager
getDevModeHandler
-
-
-
-
Method Detail
-
getHandlesTypes
public Class<?>[] getHandlesTypes()
Description copied from interface:
DevModeHandlerManager
A dev mode handler implementation is interested in certain annotations to be be scanned from the class path and passed to the
DevModeHandlerManager.initDevModeHandler(Set, VaadinContext)
initializer.Specified by:
getHandlesTypes
in interfaceDevModeHandlerManager
Returns:
an array of types the dev mode handler is interested id.
-
initDevModeHandler
public void initDevModeHandler(Set<Class<?>> classes, VaadinContext context) throws VaadinInitializerException
Description copied from interface:
DevModeHandlerManager
Starts up a new
DevModeHandler
.Specified by:
initDevModeHandler
in interfaceDevModeHandlerManager
Parameters:
classes
- classes to check for npm- and js modulescontext
- servlet context we are running inThrows:
VaadinInitializerException
- if dev mode can't be initialized
-
getDevModeHandler
public DevModeHandler getDevModeHandler()
Description copied from interface:
DevModeHandlerManager
Returns a
DevModeHandler
instance for the givenservice
.Specified by:
getDevModeHandler
in interfaceDevModeHandlerManager
Returns:
a
DevModeHandler
instance
-
isDevModeAlreadyStarted
public boolean isDevModeAlreadyStarted(VaadinContext context)
Description copied from interface:
DevModeHandlerManager
Returns whether
DevModeHandler
has been already started or not.Specified by:
isDevModeAlreadyStarted
in interfaceDevModeHandlerManager
Parameters:
context
- TheVaadinContext
, notnull
Returns:
true
ifDevModeHandler
has already been started,false
- otherwise
-
-