Class ErrorViewHotswapper
- All Implemented Interfaces:
VaadinHotswapper
The UI is normally refreshed in place. The page is reloaded only when routes exist while the page for a project without routes is shown and Copilot has taken it over: Copilot replaces the page body, so an in-place refresh would render the new view into detached DOM. Without Copilot, that page is refreshed in place like any other error view.
A reload is not used more widely because it is sent to every open browser tab
and recreates their UIs, unless they use @PreserveOnRefresh. A
refresh reaches only the affected UIs when they all use push; otherwise it is
also sent to every open tab, but it only re-navigates each tab in place
instead of reloading the page.
For internal use only. May be renamed or removed in a future release.
- Since:
- 25.1
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidCalled by Vaadin hotswap entry point when one or more application classes have been updated.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.vaadin.base.devserver.hotswap.VaadinHotswapper
onClassesChange, onClassLoadEvent, onClassLoadEvent, onHotswapComplete, onInit, onResourcesChange
-
Constructor Details
-
ErrorViewHotswapper
public ErrorViewHotswapper()Creates the hotswapper. It is found through the service loader.
-
-
Method Details
-
onClassesChange
Description copied from interface:VaadinHotswapperCalled by Vaadin hotswap entry point when one or more application classes have been updated.This method is meant to perform updates at
VaadinSessionlevel. Operation targeting the entire application should be implemented inVaadinHotswapper.onClassesChange(HotswapClassEvent)method.Currently, the default implementation delegates to the deprecated
VaadinHotswapper.onClassLoadEvent(VaadinSession, Set, boolean)method for backward compatibility.- Specified by:
onClassesChangein interfaceVaadinHotswapper- Parameters:
event- the event instance carrying the information about the changed classes.- See Also:
-