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.
- Author:
- Vaadin Ltd
-
Method Summary
Modifier and TypeMethodDescriptiongetLiveReload(VaadinContext context) Returns aBrowserLiveReloadinstance for the givencontext.default BrowserLiveReloadgetLiveReload(VaadinService service) Returns aBrowserLiveReloadinstance for the givenservice.static Optional<BrowserLiveReload> getLiveReloadFromContext(VaadinContext context) Create aBrowserLiveReloadif factory available.static Optional<BrowserLiveReload> getLiveReloadFromService(VaadinService service) Create aBrowserLiveReloadif factory available.
-
Method Details
-
getLiveReload
Returns aBrowserLiveReloadinstance for the givencontext.- Parameters:
context- a Vaadin context- Returns:
- a
BrowserLiveReloadinstance or null if disabled
-
getLiveReload
Returns aBrowserLiveReloadinstance for the givenservice.- Parameters:
service- a Vaadin service- Returns:
- a
BrowserLiveReloadinstance or null if disabled
-
getLiveReloadFromService
Create aBrowserLiveReloadif factory available.- Parameters:
service- a Vaadin service- Returns:
- an
Optionalcontaining aBrowserLiveReloadinstance orEMPTYif disabled
-
getLiveReloadFromContext
Create aBrowserLiveReloadif factory available.- Parameters:
context- a Vaadin Context- Returns:
- an
Optionalcontaining aBrowserLiveReloadinstance orEMPTYif disabled or in production mode
-