summaryrefslogtreecommitdiffstats
path: root/server/src/com/vaadin/util
Commit message (Collapse)AuthorAgeFilesLines
* Migrate vaadin-server build to mavenTeemu Suo-Anttila2016-03-145-1224/+0
| | | | Change-Id: I5c740f4e9cb28103bab199f9a552153d82277e7e
* Make restoreInstances clear value when previous value was gc:ed (#17603)Leif Åstrand2015-04-241-3/+2
| | | | Change-Id: I61992c04cac578dc1158efd9c76484eacc8a6b6a
* Missing @since for 7.4Leif Åstrand2014-12-181-0/+3
| | | | Change-Id: I8fdf0c264febf2ab9ae0f230f6bb357ef57be9ec
* Made MethodPropertyDescriptor box primitive types as it's done in ↵Taras Hupalo2014-09-191-0/+24
| | | | | | MethodProperty (#14659) Change-Id: I75ee98c36bf57483025157d0bd2039e3f6553aec
* Disable automatic removal of trailing whitespace and reformatted using LunaArtur Signell2014-07-311-2/+2
| | | | | | | | | | Automatic removal of trailing whitespaces in Eclipse does not work even in a nearly consistent way across platforms, versions or even on the same maching within the same workspaces. Saving the same file multiple times even alternates between adding and removing a whitespace on empty block comment lines when saving. Change-Id: I0efd307fd48869ea688eb79aa77c9ba38de5a4a6
* Optimize CurrentInstance.set(UI) and .set(VaadinSession). (#14220)Fabian Lange2014-07-141-54/+40
| | | | | | | | | This change reduces the amount of intermediate steps taken to initialize the thread locals for a given ui or vaadin session. It mainly takes advantage of reusing the old values from the map in set() instead of creating new ones to put into the "old" map which is returned. Change-Id: I4dbaff973f46e73f8f3a0c285b14c97603f2d5a4
* Update copyright year to 2014Artur Signell2014-04-165-5/+5
| | | | 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-052-236/+74
| | | | Change-Id: I9ec103a1a42d8888d6f680f477393807223740cf
* Excludes WeakValueMap from the serializable test #12401Jonatan Kronqvist2013-09-031-0/+2
| | | | | | | Also added a note to the WeakValueMap JavaDoc stating that it is not serializable. Change-Id: If342746ad7c7cac0db8bac4ba75236970cc4cd01
* Avoid leaking memory from inherited ThreadLocales. Fixes #12401Jonatan Kronqvist2013-09-022-1/+229
| | | | | | | | | | | | 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
* Send connector debug (highlight) using RPC (#11536)Artur Signell2013-06-051-0/+101
| | | | Change-Id: I8995e9affd371543457f16568f1245f7467e0804
* 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-152-2/+4
| | | | Change-Id: I40a59087fea7fbd4ad202ef803b42bbc76bf94d3
* Updated copyright notices and added missing license headersArtur Signell2013-01-044-5/+5
| | | | Change-Id: I419ce4581d1a8b84d4236a85a1333d23f3423b2e
* Fix for ticket #10121, a unit test for the ticket's issue and a unitJonni Nakari2012-12-131-0/+50
| | | | | | test for the new method in ReflectTools Change-Id: If8d57b4b38e8856ff2a9ef130dc71cf5b315858a
* Merged com.vaadin.service into com.vaadin.util (#10146)Artur Signell2012-11-061-0/+395
| | | | Change-Id: I313ba80073b89a90da8ebe8c26f35c4fcc51f431
* Unify ThreadLocal handling (#9469)Leif Åstrand2012-09-051-0/+131
|
* Moved ReflectTools to com.vaadin.util (#4294)Artur Signell2012-09-041-0/+138
|
* Replaced license place holder with actual license (#8955)Artur Signell2012-08-161-1/+13
|
* Moved server files to a server src folder (#9299)Artur Signell2012-08-131-0/+145