Package com.vaadin.copilot
Class HotswapListener
java.lang.Object
com.vaadin.copilot.HotswapListener
- All Implemented Interfaces:
VaadinHotswapper
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanonClassLoadEvent(VaadinSession vaadinSession, Set<Class<?>> classes, boolean redefined) Called 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
-
Constructor Details
-
HotswapListener
public HotswapListener()
-
-
Method Details
-
onClassLoadEvent
public boolean onClassLoadEvent(VaadinSession vaadinSession, Set<Class<?>> classes, boolean redefined) 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 atVaadinSessionlevel. Operation targeting the entire application should be implemented inVaadinHotswapper.onClassLoadEvent(VaadinService, Set, boolean)method.- Specified by:
onClassLoadEventin interfaceVaadinHotswapper- Parameters:
vaadinSession- theVaadinSessionto be potentially updated.classes- the set of changed classes.redefined- true if the classes have been redefined by hotswap mechanism, false if they have been loaded for the first time by the ClassLoader.- Returns:
- true if a browser page reload is required, false otherwise.
- See Also:
-