diff options
author | Leif Åstrand <leif@vaadin.com> | 2013-05-21 13:33:44 +0300 |
---|---|---|
committer | Leif Åstrand <leif@vaadin.com> | 2013-05-21 13:33:44 +0300 |
commit | 778de066b1f8b1608b40bdd98b61b6fee078442d (patch) | |
tree | 775cddd66437e673eea226287c06d4d8eef9e016 /shared | |
parent | 42c4b2097bc955ca18107c449e04f0d5d5683ca3 (diff) | |
download | vaadin-framework-778de066b1f8b1608b40bdd98b61b6fee078442d.tar.gz vaadin-framework-778de066b1f8b1608b40bdd98b61b6fee078442d.zip |
Derive current servlet/portlet from the current service (#11779)
Implement VaadinPortlet.getCurrent() to use VaadinService.getCurrent()
instead of having a separate thread local variable. This is done to
avoid classloading issues when determining which instances to preserve
in CurrentInstance.setThreadLocals. The two current instances have
previously been kept in sync in all cases except during
VaadinPortlet.init where VaadinService has not yet been created.
VaadinPortlet.setCurrent() is removed as no way of preserving its
semantics has been found. This breaks API compatibility, but is probably
better than having a deprecated implementation that can not work as
expected in all situations.
The same changes have also been made to VaadinServlet to maintain the
symmetry.
Change-Id: I0a1ccc07a4aeecec558a9aaae211bd56207313d8
Diffstat (limited to 'shared')
0 files changed, 0 insertions, 0 deletions