Class Hotswapper

java.lang.Object
com.vaadin.hilla.Hotswapper
All Implemented Interfaces:
VaadinHotswapper

public class Hotswapper extends Object implements VaadinHotswapper
Takes care of updating internals of Hilla that need updates when application classes are updated.
  • Constructor Details

    • Hotswapper

      public Hotswapper()
  • Method Details

    • onClassesChange

      public void onClassesChange(HotswapClassEvent event)
      Description copied from interface: VaadinHotswapper
      Called by Vaadin hotswap entry point when one or more application classes have been updated.

      This method is meant to perform application-wide updates. Operation targeting Vaadin session should be implemented in VaadinHotswapper.onClassesChange(HotswapClassSessionEvent) method.

      Currently, the default implementation delegates to the deprecated VaadinHotswapper.onClassLoadEvent(VaadinService, Set, boolean) method for backward compatibility.

      Specified by:
      onClassesChange in interface VaadinHotswapper
      Parameters:
      event - the event instance carrying the information about the changed classes.
      See Also:
    • onHotswap

      public static void onHotswap(Boolean redefined, String[] changedClasses)
      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 - true if the class was redefined, false if it was loaded for the first time
      changedClasses - the classes that have been added or modified
    • markInUse

      public static void markInUse()
    • isInUse

      public static boolean isInUse()