Class ClassSpecificNameResolverRegistry
- java.lang.Object
-
- org.eclipse.mat.snapshot.registry.ClassSpecificNameResolverRegistry
-
public final class ClassSpecificNameResolverRegistry extends java.lang.Object
Registry for name resolvers which resolve the names for objects of specific classes (found in an snapshot), e.g. String (where the char[] is evaluated) or a specific class loader (where the appropriate field holding its name and thereby deployment unit is evaluated).
-
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static ClassSpecificNameResolverRegistry
instance()
static void
registerResolver(java.lang.String className, IClassSpecificNameResolver resolver)
Deprecated.Use default extension mechanism: just implement interface and register location via UIstatic java.lang.String
resolve(IObject object)
Resolve name of the given snapshot object or return null if it can't be resolved.
-
-
-
Method Detail
-
instance
public static ClassSpecificNameResolverRegistry instance()
-
registerResolver
@Deprecated public static void registerResolver(java.lang.String className, IClassSpecificNameResolver resolver)
Deprecated.Use default extension mechanism: just implement interface and register location via UIRegister class specific name resolver.- Parameters:
className
- class name for which the class specific name resolver should be usedresolver
- class specific name resolver
-
resolve
public static java.lang.String resolve(IObject object)
Resolve name of the given snapshot object or return null if it can't be resolved.- Parameters:
object
- snapshot object for which the name should be resolved- Returns:
- name of the given snapshot object or null if it can't be resolved
-
-