public class VaadinSessionInfo extends Object
VaadinSession in a VaadinSessionContainer.| Modifier and Type | Field and Description |
|---|---|
protected VaadinSession |
session
The
VaadinSession associated with this instance. |
| Constructor and Description |
|---|
VaadinSessionInfo()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
VaadinSession |
getVaadinSession()
Get the
VaadinSession associated with this instance. |
boolean |
isCurrentSession()
Determine if the
VaadinSession associated with this instance is also associated with the current thread. |
protected void |
makeUpdatesVisible()
Make the updates previously gathered by
updateInformation() visible in this instance's VaadinSessionContainer. |
protected void |
updateInformation()
Update this instance with information from its corresponding
VaadinSession,
which will be associated with the current thread and locked. |
protected final VaadinSession session
VaadinSession associated with this instance.public VaadinSessionInfo()
IllegalStateException - if there is no current VaadinSessionpublic VaadinSession getVaadinSession()
VaadinSession associated with this instance.public boolean isCurrentSession()
VaadinSession associated with this instance is also associated with the current thread.protected void updateInformation()
VaadinSession,
which will be associated with the current thread and locked.
This method is invoked from VaadinSessionContainer.doUpdate(); the implementation in
VaadinSessionInfo does nothing.
When this method and makeUpdatesVisible() are overridden, consider declaring them both synchronized,
as they are invoked with different locks held yet will access the same information.
protected void makeUpdatesVisible()
updateInformation() visible in this instance's VaadinSessionContainer.
The VaadinSession associated with this instance's VaadinSessionContainer will be associated with the
current thread and locked.
This method is invoked from VaadinSessionContainer.doUpdate(); the implementation in
VaadinSessionInfo does nothing.
When this method and updateInformation() are used, consider declaring them both synchronized,
as they are invoked with different locks held yet will access the same information.
Copyright © 2017. All rights reserved.