Package com.vaadin.hilla
Class Hotswapper
java.lang.Object
com.vaadin.hilla.Hotswapper
- All Implemented Interfaces:
com.vaadin.base.devserver.hotswap.VaadinHotswapper
public class Hotswapper
extends Object
implements com.vaadin.base.devserver.hotswap.VaadinHotswapper
Takes care of updating internals of Hilla that need updates when application
classes are updated.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisInUse()static voidvoidonClassesChange(com.vaadin.base.devserver.hotswap.HotswapClassEvent event) static voidCalled by hot swap solutions when one or more 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
-
Hotswapper
public Hotswapper()
-
-
Method Details
-
onClassesChange
public void onClassesChange(com.vaadin.base.devserver.hotswap.HotswapClassEvent event) - Specified by:
onClassesChangein interfacecom.vaadin.base.devserver.hotswap.VaadinHotswapper
-
onHotswap
Called by hot swap solutions when one or more classes have been updated.The hot swap solution should not pre-filter the classes but pass everything to this method.
- Parameters:
redefined-trueif the class was redefined,falseif it was loaded for the first timechangedClasses- the classes that have been added or modified
-
markInUse
public static void markInUse() -
isInUse
public static boolean isInUse()
-