org.springframework.osgi.util
Class ServiceReferenceBasedMap

java.lang.Object
  extended by java.util.AbstractMap
      extended by org.springframework.osgi.util.ServiceReferenceBasedMap
All Implemented Interfaces:
Map

public class ServiceReferenceBasedMap
extends AbstractMap

ServiceReference based map. Offers a dynamic view of a service properties, which can reflect updates done through the ServiceRegistration.

Author:
Costin Leau
See Also:
ServiceRegistration, ServiceReference

Nested Class Summary
static class ServiceReferenceBasedMap.SimpleEntry
           
 
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleImmutableEntry<K,V>
 
Nested classes/interfaces inherited from interface java.util.Map
Map.Entry<K,V>
 
Constructor Summary
ServiceReferenceBasedMap(ServiceReference ref)
           
 
Method Summary
 void clear()
           
 boolean containsKey(Object key)
           
 boolean containsValue(Object value)
           
 Set entrySet()
           
 Object get(Object key)
           
 Object put(Object key, Object value)
           
 void putAll(Map t)
           
 Object remove(Object key)
           
 
Methods inherited from class java.util.AbstractMap
clone, equals, hashCode, isEmpty, keySet, size, toString, values
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ServiceReferenceBasedMap

public ServiceReferenceBasedMap(ServiceReference ref)
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 value)
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

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


Copyright © 2006-2007 Spring Framework. All Rights Reserved.