org.jboss.portal.common.util
Interface MapAccessor<K,V>
- All Known Implementing Classes:
- SimpleMapAccessor
public interface MapAccessor<K,V>
An interface which defines how a map can be accessed.
- Version:
- $Revision: 7228 $
- Author:
- Julien Viet
Method Summary |
java.util.Map<K,V> |
getMap(boolean writable)
Return the accessed map. |
getMap
java.util.Map<K,V> getMap(boolean writable)
- Return the accessed map.
- Parameters:
writable
- whether or not the Map will be accessed for a write-type (e.g., put, remove...) operation.
This allows for lazy initialization via a create-on-write mechanism.
- Returns:
- a non null map