org.apache.myfaces.util
Class AbstractThreadSafeAttributeMap

java.lang.Object
  extended by java.util.AbstractMap
      extended by org.apache.myfaces.util.AbstractThreadSafeAttributeMap
All Implemented Interfaces:
Map
Direct Known Subclasses:
ApplicationMap, ApplicationMap, SessionMap, SessionMap

public abstract class AbstractThreadSafeAttributeMap
extends AbstractMap

Helper Map implementation for use with different Attribute Maps.

Version:
$Revision: 982465 $ $Date: 2010-08-04 23:39:32 -0500 (MiƩ, 04 Ago 2010) $
Author:
Anton Koinov (latest modification by $Author: lu4242 $)

Nested Class Summary
 
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
 
Nested classes/interfaces inherited from interface java.util.Map
Map.Entry<K,V>
 
Constructor Summary
AbstractThreadSafeAttributeMap()
           
 
Method Summary
 void clear()
           
 boolean containsKey(Object key)
           
 boolean containsValue(Object findValue)
           
 Set entrySet()
           
 Object get(Object key)
           
protected abstract  Object getAttribute(String key)
           
protected abstract  Enumeration getAttributeNames()
           
 boolean isEmpty()
           
 Set keySet()
           
 Object put(Object key, Object value)
           
 void putAll(Map t)
           
 Object remove(Object key)
           
protected abstract  void removeAttribute(String key)
           
protected abstract  void setAttribute(String key, Object value)
           
 int size()
           
 Collection values()
           
 
Methods inherited from class java.util.AbstractMap
clone, equals, hashCode, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AbstractThreadSafeAttributeMap

public AbstractThreadSafeAttributeMap()
Method Detail

clear

public void clear()
Specified by:
clear in interface Map
Overrides:
clear in class AbstractMap

containsKey

public boolean containsKey(Object key)
Specified by:
containsKey in interface Map
Overrides:
containsKey in class AbstractMap

containsValue

public boolean containsValue(Object findValue)
Specified by:
containsValue in interface Map
Overrides:
containsValue in class AbstractMap

entrySet

public Set entrySet()
Specified by:
entrySet in interface Map
Specified by:
entrySet in class AbstractMap

get

public Object get(Object key)
Specified by:
get in interface Map
Overrides:
get in class AbstractMap

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface Map
Overrides:
isEmpty in class AbstractMap

keySet

public Set keySet()
Specified by:
keySet in interface Map
Overrides:
keySet in class AbstractMap

put

public Object put(Object key,
                  Object value)
Specified by:
put in interface Map
Overrides:
put in class AbstractMap

putAll

public void putAll(Map t)
Specified by:
putAll in interface Map
Overrides:
putAll in class AbstractMap

remove

public Object remove(Object key)
Specified by:
remove in interface Map
Overrides:
remove in class AbstractMap

size

public int size()
Specified by:
size in interface Map
Overrides:
size in class AbstractMap

values

public Collection values()
Specified by:
values in interface Map
Overrides:
values in class AbstractMap

getAttribute

protected abstract Object getAttribute(String key)

setAttribute

protected abstract void setAttribute(String key,
                                     Object value)

removeAttribute

protected abstract void removeAttribute(String key)

getAttributeNames

protected abstract Enumeration getAttributeNames()


Copyright © 2012 The Apache Software Foundation. All Rights Reserved.