Package com.vaadin.hilla
Class Hotswapper
java.lang.Object
com.vaadin.hilla.Hotswapper
- All Implemented Interfaces:
com.vaadin.flow.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 voidbooleanonClassLoadEvent(com.vaadin.flow.server.VaadinService vaadinService, Set<Class<?>> classes, boolean redefined) 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.flow.hotswap.VaadinHotswapper
onClassLoadEvent, onHotswapComplete
-
Constructor Details
-
Hotswapper
public Hotswapper()
-
-
Method Details
-
onClassLoadEvent
public boolean onClassLoadEvent(com.vaadin.flow.server.VaadinService vaadinService, Set<Class<?>> classes, boolean redefined) - Specified by:
onClassLoadEventin interfacecom.vaadin.flow.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()
-