In Vaadin 7beta3, the
VaadinServiceSession
class provides a generic way to store data in the session using
setAttribute()
and
getAttribute()
. That’s great - so far so good.
Now consider the case where the HTTP session is serialized and then deserialized, and some object that was stored there via
VaadinServiceSession.setAttribute()
needs to perform custom deserialization logic in its
readObject()
method.
Or more generally, consider any part of the serialized Vaadin session that needs access to the current
VaadinRequest
,
VaadinService
, or
VaadinServiceSession
in order to perform its custom deserialization logic.
What is going to be the state of the
VaadinService
and
VaadinServiceSession
objects at that time (i.e., during deserialization)?
Will
VaadinService.getCurrentRequest()
work?
Will
VaadinService.getCurrent()
work?
Will
VaadinService.getCurrent().findVaadinSession(VaadinService.getCurrentRequest())
work?
Thanks.