Package com.vaadin.flow.internal
Interface BrowserLiveReloadAccessor
-
- All Known Implementing Classes:
BrowserLiveReloadAccessorImpl
public interface BrowserLiveReloadAccessorProvides API to access to theBrowserLiveReloadinstance by aVaadinService.For internal use only. May be renamed or removed in a future release.
- Since:
- Author:
- Vaadin Ltd
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description BrowserLiveReloadgetLiveReload(VaadinContext context)Returns aBrowserLiveReloadinstance for the givencontext.default BrowserLiveReloadgetLiveReload(VaadinService service)Returns aBrowserLiveReloadinstance for the givenservice.static Optional<BrowserLiveReload>getLiveReloadFromService(VaadinService service)Create aBrowserLiveReloadif factory available.
-
-
-
Method Detail
-
getLiveReload
BrowserLiveReload getLiveReload(VaadinContext context)
Returns aBrowserLiveReloadinstance for the givencontext.- Parameters:
context- a Vaadin context- Returns:
- a
BrowserLiveReloadinstance or null if disabled
-
getLiveReload
default BrowserLiveReload getLiveReload(VaadinService service)
Returns aBrowserLiveReloadinstance for the givenservice.- Parameters:
service- a Vaadin service- Returns:
- a
BrowserLiveReloadinstance or null if disabled
-
getLiveReloadFromService
static Optional<BrowserLiveReload> getLiveReloadFromService(VaadinService service)
Create aBrowserLiveReloadif factory available.- Parameters:
service- a Vaadin service- Returns:
- an
Optionalcontaining aBrowserLiveReloadinstance orEMPTYif disabled
-
-