org.springframework.webflow.context.portlet
Class PortletSessionMap
java.lang.Object
org.springframework.binding.collection.StringKeyedMapAdapter
org.springframework.webflow.context.portlet.PortletSessionMap
- All Implemented Interfaces:
- Map, SharedMap
public class PortletSessionMap
- extends StringKeyedMapAdapter
- implements SharedMap
A Shared Map backed by the Portlet session, for accessing session scoped attributes.
- Author:
- Keith Donald, Scott Andrews
Nested classes/interfaces inherited from interface java.util.Map |
Map.Entry<K,V> |
Constructor Summary |
PortletSessionMap(javax.portlet.PortletRequest request)
Create a map wrapping the session of given request. |
Method Summary |
Object |
getMutex()
Returns the shared mutex that may be synchronized on using a synchronized block. |
Methods inherited from class org.springframework.binding.collection.StringKeyedMapAdapter |
clear, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values |
Methods inherited from interface java.util.Map |
clear, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, values |
PortletSessionMap
public PortletSessionMap(javax.portlet.PortletRequest request)
- Create a map wrapping the session of given request.
getMutex
public Object getMutex()
- Description copied from interface:
SharedMap
- Returns the shared mutex that may be synchronized on using a synchronized block. The returned mutex is guaranteed
to be non-null.
Example usage:
synchronized (sharedMap.getMutex()) {
// do synchronized work
}
- Specified by:
getMutex
in interface SharedMap
- Returns:
- the mutex