Search in sources :

Example 1 with BrowserLiveReloadAccess

use of com.vaadin.flow.internal.BrowserLiveReloadAccess in project flow by vaadin.

the class JavaLiveReloadView method handleClickJavaLiveReload.

// Java triggered live reload is faked as we do not have Trava JDK in test
private void handleClickJavaLiveReload(ClickEvent<?> event) {
    BrowserLiveReloadAccess liveReloadAccess = VaadinService.getCurrent().getInstantiator().getOrCreate(BrowserLiveReloadAccess.class);
    BrowserLiveReload browserLiveReload = liveReloadAccess.getLiveReload(VaadinService.getCurrent());
    browserLiveReload.reload();
}
Also used : BrowserLiveReloadAccess(com.vaadin.flow.internal.BrowserLiveReloadAccess) BrowserLiveReload(com.vaadin.flow.internal.BrowserLiveReload)

Aggregations

BrowserLiveReload (com.vaadin.flow.internal.BrowserLiveReload)1 BrowserLiveReloadAccess (com.vaadin.flow.internal.BrowserLiveReloadAccess)1