Package com.vaadin.flow.internal
Interface BrowserLiveReloadAccessor
- All Known Implementing Classes:
BrowserLiveReloadAccessorImpl
public interface BrowserLiveReloadAccessor
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 aBrowserLiveReload
instance for the givencontext
.default BrowserLiveReload
getLiveReload
(VaadinService service) Returns aBrowserLiveReload
instance for the givenservice
.static Optional<BrowserLiveReload>
getLiveReloadFromContext
(VaadinContext context) Create aBrowserLiveReload
if factory available.static Optional<BrowserLiveReload>
getLiveReloadFromService
(VaadinService service) Create aBrowserLiveReload
if factory available.
-
Method Details
-
getLiveReload
Returns aBrowserLiveReload
instance for the givencontext
.- Parameters:
context
- a Vaadin context- Returns:
- a
BrowserLiveReload
instance or null if disabled
-
getLiveReload
Returns aBrowserLiveReload
instance for the givenservice
.- Parameters:
service
- a Vaadin service- Returns:
- a
BrowserLiveReload
instance or null if disabled
-
getLiveReloadFromService
Create aBrowserLiveReload
if factory available.- Parameters:
service
- a Vaadin service- Returns:
- an
Optional
containing aBrowserLiveReload
instance orEMPTY
if disabled
-
getLiveReloadFromContext
Create aBrowserLiveReload
if factory available.- Parameters:
context
- a Vaadin Context- Returns:
- an
Optional
containing aBrowserLiveReload
instance orEMPTY
if disabled
-