org.ops4j.peaberry.osgi
Class AttributeDictionary

java.lang.Object
  extended by java.util.Dictionary<String,Object>
      extended by org.ops4j.peaberry.osgi.AttributeDictionary

public final class AttributeDictionary
extends Dictionary<String,Object>

Lazy read-only Dictionary backed by a service attribute map.

Author:
mcculls@gmail.com (Stuart McCulloch)

Constructor Summary
AttributeDictionary(Map<String,?> attributes)
           
 
Method Summary
 Enumeration<Object> elements()
           
 Object get(Object key)
           
 boolean isEmpty()
           
 Enumeration<String> keys()
           
 Object put(String key, Object value)
           
 Object remove(Object key)
           
 int size()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AttributeDictionary

public AttributeDictionary(Map<String,?> attributes)
Method Detail

get

public Object get(Object key)
Specified by:
get in class Dictionary<String,Object>

keys

public Enumeration<String> keys()
Specified by:
keys in class Dictionary<String,Object>

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in class Dictionary<String,Object>

size

public int size()
Specified by:
size in class Dictionary<String,Object>

elements

public Enumeration<Object> elements()
Specified by:
elements in class Dictionary<String,Object>

put

public Object put(String key,
                  Object value)
Specified by:
put in class Dictionary<String,Object>

remove

public Object remove(Object key)
Specified by:
remove in class Dictionary<String,Object>


Copyright © 2006-2012 OPS4J - Open Participation Software for Java. All Rights Reserved.