com.vaadin.flow.internal.
Interface DevModeHandlerManager
-
All Known Implementing Classes:
public interface 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
-
-
Method Summary
All Methods Modifier and Type Method Description DevModeHandler
getDevModeHandler()
Returns a
DevModeHandler
instance for the givenservice
.static Optional<DevModeHandler>
getDevModeHandler(VaadinContext context)
Gets the
DevModeHandler
.static Optional<DevModeHandler>
getDevModeHandler(VaadinService service)
Gets the
DevModeHandler
.Class<?>[]
getHandlesTypes()
The annotations the dev mode handler is interested in having scanned from the class path.
void
initDevModeHandler(Set<Class<?>> classes, VaadinContext context)
Starts up a new
DevModeHandler
.void
setDevModeHandler(DevModeHandler devModeHandler)
Defines the handler to use with this manager.
-
-
-
Method Detail
-
getHandlesTypes
Class<?>[] getHandlesTypes()
The annotations the dev mode handler is interested in having scanned from the class path.
Returns:
an array of types the dev mode handler is interested in
-
initDevModeHandler
void initDevModeHandler(Set<Class<?>> classes, VaadinContext context) throws VaadinInitializerException
Starts up a new
DevModeHandler
.Parameters:
classes
- classes to check for npm- and js modulescontext
- servlet context we are running inThrows:
VaadinInitializerException
- if dev mode can't be initialized
-
setDevModeHandler
void setDevModeHandler(DevModeHandler devModeHandler)
Defines the handler to use with this manager.
Parameters:
devModeHandler
- the dev mode handler to use
-
getDevModeHandler
DevModeHandler getDevModeHandler()
Returns a
DevModeHandler
instance for the givenservice
.Returns:
a
DevModeHandler
instance
-
getDevModeHandler
static Optional<DevModeHandler> getDevModeHandler(VaadinService service)
Gets the
DevModeHandler
.Parameters:
service
- a Vaadin serviceReturns:
an
Optional
containing aDevModeHandler
instance orEMPTY
if disabled
-
getDevModeHandler
static Optional<DevModeHandler> getDevModeHandler(VaadinContext context)
Gets the
DevModeHandler
.Parameters:
context
- the Vaadin contextReturns:
an
Optional
containing aDevModeHandler
instance orEMPTY
if disabled
-
-