Package com.vaadin.flow.internal
Class ReflectionCacheHotswapper
java.lang.Object
com.vaadin.flow.internal.ReflectionCacheHotswapper
- All Implemented Interfaces:
VaadinHotswapper
Clears all mappings from all reflection caches and related resources when one
or more classes has been changed.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
onClassLoadEvent
(VaadinService vaadinService, 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, wait
Methods inherited from interface com.vaadin.flow.hotswap.VaadinHotswapper
onClassLoadEvent, onHotswapComplete
-
Constructor Details
-
ReflectionCacheHotswapper
public ReflectionCacheHotswapper()
-
-
Method Details
-
onClassLoadEvent
public boolean onClassLoadEvent(VaadinService vaadinService, Set<Class<?>> classes, boolean redefined) Description copied from interface:VaadinHotswapper
Called by Vaadin hotswap entry point when one or more application classes have been updated.VaadinHotswapper.onClassLoadEvent(VaadinSession, Set, boolean)
method.- Specified by:
onClassLoadEvent
in interfaceVaadinHotswapper
- Parameters:
vaadinService
- activeVaadinService
instance.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:
-