com.vaadin.flow.internal.
Interface BrowserLiveReloadAccessor
All Known Implementing Classes:
Provides API to access to the BrowserLiveReload
instance by a
VaadinService
.
For internal use only. May be renamed or removed in a future release.
Since:
Author:
Vaadin Ltd
-
Method Summary
Modifier and TypeMethodDescriptiongetLiveReload
(VaadinContext context) Returns a
BrowserLiveReload
instance for the givencontext
.default BrowserLiveReload
getLiveReload
(VaadinService service) Returns a
BrowserLiveReload
instance for the givenservice
.static Optional<BrowserLiveReload>
getLiveReloadFromContext
(VaadinContext context) Create a
BrowserLiveReload
if factory available.static Optional<BrowserLiveReload>
getLiveReloadFromService
(VaadinService service) Create a
BrowserLiveReload
if factory available.
-
Method Details
-
getLiveReload
Returns a
BrowserLiveReload
instance for the givencontext
.Parameters:
context
- a Vaadin contextReturns:
a
BrowserLiveReload
instance or null if disabled -
getLiveReload
Returns a
BrowserLiveReload
instance for the givenservice
.Parameters:
service
- a Vaadin serviceReturns:
a
BrowserLiveReload
instance or null if disabled -
getLiveReloadFromService
Create a
BrowserLiveReload
if factory available.Parameters:
service
- a Vaadin serviceReturns:
an
Optional
containing aBrowserLiveReload
instance orEMPTY
if disabled -
getLiveReloadFromContext
Create a
BrowserLiveReload
if factory available.Parameters:
context
- a Vaadin ContextReturns:
an
Optional
containing aBrowserLiveReload
instance orEMPTY
if disabled or in production mode
-