de.grogra.pf.registry
Class LookupForClass

java.lang.Object
  extended by de.grogra.pf.registry.LookupForClass
All Implemented Interfaces:
Map

public class LookupForClass
extends java.lang.Object
implements Map


Nested Class Summary
 
Nested classes/interfaces inherited from interface de.grogra.util.Map
Map.Chain
 
Field Summary
 
Fields inherited from interface de.grogra.util.Map
DEFAULT_VALUE, EMPTY_MAP
 
Constructor Summary
LookupForClass(Item base)
           
 
Method Summary
 java.lang.Object get(java.lang.Object key, java.lang.Object defaultValue)
          Returns the value associated with key.
 java.lang.Object lookup(java.lang.Class cls)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LookupForClass

public LookupForClass(Item base)
Method Detail

get

public java.lang.Object get(java.lang.Object key,
                            java.lang.Object defaultValue)
Description copied from interface: Map
Returns the value associated with key. If there is no value associated with key, defaultValue is returned.

Specified by:
get in interface Map
Parameters:
key - a key for the map
defaultValue - the default value
Returns:
the associated value, or defaultValue

lookup

public java.lang.Object lookup(java.lang.Class cls)