Package com.vaadin.flow.router.internal
Class RouteRegistryHotswapper
java.lang.Object
com.vaadin.flow.router.internal.RouteRegistryHotswapper
- All Implemented Interfaces:
VaadinHotswapper
A component that reacts on class changes to update route registries.
This class is meant to be used in combination wit Flow
Hotswapper to immediately update routes
registries when classes have been added or modified.
For internal use only. May be renamed or removed in a future release.
- Since:
- 24.5
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidonClassesChange(HotswapClassEvent event) Updates both application registry, to reflect provided class changes.voidCalled 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.flow.hotswap.VaadinHotswapper
onClassLoadEvent, onClassLoadEvent, onHotswapComplete, onInit, onResourcesChange
-
Constructor Details
-
RouteRegistryHotswapper
public RouteRegistryHotswapper()
-
-
Method Details
-
onClassesChange
Updates both application registry, to reflect provided class changes.For modified route classes, the following changes are taken into account:
Routeannotation removed: the previous route is removed from the registryRoute.value()modified
- Specified by:
onClassesChangein interfaceVaadinHotswapper- Parameters:
event- the event instance carrying the information about the changed classes.- See Also:
-
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:
-