summaryrefslogtreecommitdiffstats
path: root/server/src/com/vaadin/util/CurrentInstance.java
Commit message (Collapse)AuthorAgeFilesLines
* Update copyright year to 2014Artur Signell2014-04-161-1/+1
| | | | Change-Id: Ic77338304dc7e58e49f27dcdaf0bab2e00f5bba6
* Added a comment that hopefully explains the NULL_OBJECT #12509Jonatan Kronqvist2013-09-091-0/+16
| | | | Change-Id: I99ea86d8842324884dda3a5c392f37e8d4a7acf6
* Allow storing and restoring null instances in CurrentInstance #125097.1.5Jonatan Kronqvist2013-09-091-7/+24
| | | | Change-Id: Icf82377b0d47166d59e8be5f2f8b450d654302d7
* Protect CurrentInstance instances from garbage collection (#12509)Leif Åstrand2013-09-051-6/+74
| | | | Change-Id: I9ec103a1a42d8888d6f680f477393807223740cf
* Avoid leaking memory from inherited ThreadLocales. Fixes #12401Jonatan Kronqvist2013-09-021-1/+1
| | | | | | | | | | | | The issue is fixed by changing the normal HashMap inside the inheritable thread local to a map implementation holding only weak references to the values (WeakValueMap). Also included is a test UI that starts threads, which run until the JVM is quit. This along with VisualVM was used to reproduce the issue and verify the fix. Change-Id: I116cc4e56e8a19c3b770abab6b18b9e262f4dafa
* Remove ThreadLocal references from CurrentInstance (#11914)Leif Åstrand2013-05-281-12/+22
| | | | Change-Id: Ic7389a06726026383b96de80b0d038ed11e9d273
* Define how CurrentInstance works with access() (#11897)Leif Åstrand2013-05-281-7/+39
| | | | Change-Id: I7ca62c5706fd37e7c44ed46703bcdce159b367f4
* Derive current servlet/portlet from the current service (#11779)Leif Åstrand2013-05-211-26/+0
| | | | | | | | | | | | | | | | | | | 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
* Fixed minimal (empty hashmap) memory leak on redeploy (#9993)Artur Signell2013-04-031-9/+26
| | | | Change-Id: I2b3f83220070f1f46730d956abb24ba9edf02f20
* Convenience methods for running code in the UI or VaadinSession context (#11219)Artur Signell2013-03-281-1/+105
| | | | Change-Id: If31a965f925ca2bedb25c712b83ccb070a9e71a0
* Ensure all server and shared classes are serializable (#10735)Henri Sara2013-01-151-1/+2
| | | | Change-Id: I40a59087fea7fbd4ad202ef803b42bbc76bf94d3
* Updated copyright notices and added missing license headersArtur Signell2013-01-041-1/+1
| | | | Change-Id: I419ce4581d1a8b84d4236a85a1333d23f3423b2e
* Unify ThreadLocal handling (#9469)Leif Åstrand2012-09-051-0/+131