]> source.dussan.org Git - vaadin-framework.git/commit
Use APPLICATION_SCOPE for the session lock (#11804)
authorTatu Lund <tatu@vaadin.com>
Wed, 13 Nov 2019 16:39:36 +0000 (18:39 +0200)
committerAnna Koskinen <Ansku@users.noreply.github.com>
Wed, 13 Nov 2019 16:39:36 +0000 (18:39 +0200)
commit2d6982c17576c423978a6a8a56ff9a17e106ff43
tree3406bc4216a0d03eefc3ea1097979828f19c53e4
parent4bfdc5c0067780b0732af77ad0805a78832a7816
Use APPLICATION_SCOPE for the session lock (#11804)

* Use APPLICATION_SCOPE for the session lock

To be able to do this, relevant methods in VaadinService are made protected so
that VaadinPortletService can override them.

The Vaadin session itself is also stored in APPLICATION_SCOPE. The default
scope is PORTLET_SCOPE, so lock would otherwise not be in sync with
the session.
server/src/main/java/com/vaadin/server/VaadinPortletService.java
server/src/main/java/com/vaadin/server/VaadinService.java
server/src/test/java/com/vaadin/server/VaadinPortletServiceTest.java