|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.progeeks.util.ClassRegistry
public class ClassRegistry
Class for relating objects to classes. This is slightly more involved than a simple map since a search is made up the class hierarchy.
Constructor Summary | |
---|---|
ClassRegistry()
|
|
ClassRegistry(ClassRegistry delegate)
|
Method Summary | |
---|---|
void |
clear()
Clears this registry of all mappings. |
java.lang.Object |
get(java.lang.Class c)
|
java.lang.Object |
get(java.lang.Class c,
boolean searchSuperclasses)
Returns the object associated with the specified class. |
void |
put(java.lang.Class c,
java.lang.Object value)
Maps the value to the specified type. |
void |
putAll(ClassRegistry registry)
Adds any registry entries defined in the specified registry to this one. |
void |
setMappings(java.util.Map map)
Sets the class registry mappings from a passed in Map. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ClassRegistry()
public ClassRegistry(ClassRegistry delegate)
Method Detail |
---|
public void putAll(ClassRegistry registry)
public void put(java.lang.Class c, java.lang.Object value)
public java.lang.Object get(java.lang.Class c, boolean searchSuperclasses)
public java.lang.Object get(java.lang.Class c)
public void clear()
public void setMappings(java.util.Map map)
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |