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();
}
Aggregations