org.eclipse.hyades.loaders.trace
Class TraceLookupService
java.lang.Object
java.util.AbstractMap
java.util.HashMap
org.eclipse.hyades.loaders.util.GenericLookupService
org.eclipse.hyades.loaders.trace.TraceLookupService
- All Implemented Interfaces:
- java.lang.Cloneable, ExtendedLookupService, LookupService, java.util.Map, java.io.Serializable
- public class TraceLookupService
- extends GenericLookupService
- implements ExtendedLookupService
- See Also:
- Serialized Form
|
Method Summary |
protected java.util.Map |
createMap(java.lang.Class equivalentType)
|
boolean |
deregister(HierarchyContext context,
java.lang.Class type)
|
boolean |
deregister(HierarchyContext context,
java.lang.Class type,
int key)
|
boolean |
deregister(HierarchyContext context,
java.lang.Class type,
long key)
|
boolean |
deregister(HierarchyContext context,
java.lang.Class type,
java.lang.Object key)
|
protected boolean |
doProcessObject(java.util.Map typeMap,
java.lang.Class type,
java.lang.Object object,
boolean remove)
|
protected java.lang.Class |
getEquivalentClass(java.lang.Class type)
|
protected java.util.Map |
getTypeMap(HierarchyContext context,
java.lang.Class type,
boolean create)
|
protected boolean |
isObjectType(java.lang.Class type)
|
java.lang.Object |
locate(HierarchyContext context,
java.lang.Class type,
int key)
|
java.lang.Object |
locate(HierarchyContext context,
java.lang.Class type,
long key)
|
java.lang.Object |
locate(HierarchyContext context,
java.lang.Class type,
java.lang.Object key)
|
| Methods inherited from class java.util.HashMap |
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values |
| Methods inherited from class java.util.AbstractMap |
equals, hashCode, toString |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.Map |
equals, hashCode |
TraceLookupService
public TraceLookupService()
deregister
public boolean deregister(HierarchyContext context,
java.lang.Class type,
java.lang.Object key)
- Specified by:
deregister in interface LookupService- Overrides:
deregister in class GenericLookupService
deregister
public boolean deregister(HierarchyContext context,
java.lang.Class type)
- Specified by:
deregister in interface LookupService- Overrides:
deregister in class GenericLookupService
isObjectType
protected boolean isObjectType(java.lang.Class type)
locate
public java.lang.Object locate(HierarchyContext context,
java.lang.Class type,
java.lang.Object key)
- Specified by:
locate in interface LookupService- Overrides:
locate in class GenericLookupService
getEquivalentClass
protected java.lang.Class getEquivalentClass(java.lang.Class type)
- Overrides:
getEquivalentClass in class GenericLookupService
- Returns:
- true if we should use isAssignableFrom for this type (then I will search through all supported types to see if this type can be assignable from one of them)
getTypeMap
protected java.util.Map getTypeMap(HierarchyContext context,
java.lang.Class type,
boolean create)
- Overrides:
getTypeMap in class GenericLookupService
createMap
protected java.util.Map createMap(java.lang.Class equivalentType)
- Overrides:
createMap in class GenericLookupService
doProcessObject
protected boolean doProcessObject(java.util.Map typeMap,
java.lang.Class type,
java.lang.Object object,
boolean remove)
- Specified by:
doProcessObject in class GenericLookupService
deregister
public boolean deregister(HierarchyContext context,
java.lang.Class type,
int key)
- Specified by:
deregister in interface ExtendedLookupService
deregister
public boolean deregister(HierarchyContext context,
java.lang.Class type,
long key)
- Specified by:
deregister in interface ExtendedLookupService
locate
public java.lang.Object locate(HierarchyContext context,
java.lang.Class type,
int key)
- Specified by:
locate in interface ExtendedLookupService
locate
public java.lang.Object locate(HierarchyContext context,
java.lang.Class type,
long key)
- Specified by:
locate in interface ExtendedLookupService