public interface LegacyCurrentInstance
CurrentInstance implementation.| Modifier and Type | Method and Description |
|---|---|
void |
clearAll()
Clears all current instances.
|
Map<Class<?>,com.vaadin.util.CurrentInstance> |
getCurrentInstances()
Get the all current instances.
|
void |
restoreInstances(Map<Class<?>,com.vaadin.util.CurrentInstance> previousInstances)
Restores the given instances to the given values.
|
Map<Class<?>,com.vaadin.util.CurrentInstance> getCurrentInstances()
This method is implemented in different ways for Vaadin 7 and Vaadin 8 to deal with API differences caused by dropping support for inheritable thread locals.
void clearAll()
void restoreInstances(Map<Class<?>,com.vaadin.util.CurrentInstance> previousInstances)
previousInstances - A Class-to-CurrentInstance map to set as current instancesCopyright © 2018–2023 Vaadin Ltd. All rights reserved.