Interface ITroubleTicketResolver
-
public interface ITroubleTicketResolverInterface for a trouble-ticket component resolver. A trouble-ticket component resolver can propose a proper component (e.g. MAT) within a troubleshooting system (e.g. bugzilla) for a specific class or classloader (e.g. org.eclipse.mat.parser.internal.SnapshotImpl). This information is exposed in the Leak suspects reports. It could help the user who generated the report to open a trouble ticket in the proper component, and this is especially helpful when the user is not familiar with the analyzed coding. Implementations of this interface need to be registered using theorg.eclipse.mat.api.ticketResolverextension point.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetTicketSystem()Get the trouble tracking system, e.g BugzillaStringresolveByClass(IClass clazz, IProgressListener listener)Return a proposal for the component (e.g.StringresolveByClassLoader(IClassLoader classLoader, IProgressListener listener)Return a proposal for the component (e.g.
-
-
-
Method Detail
-
getTicketSystem
String getTicketSystem()
Get the trouble tracking system, e.g Bugzilla- Returns:
- a String identifying the trouble-ticket system
-
resolveByClass
String resolveByClass(IClass clazz, IProgressListener listener) throws SnapshotException
Return a proposal for the component (e.g. the bugzilla product MAT) based on a class.- Parameters:
clazz- the class for which the component should be proposedlistener- a progress listener- Returns:
- a String for the proposed component, or null if no proposal.
- Throws:
SnapshotException
-
resolveByClassLoader
String resolveByClassLoader(IClassLoader classLoader, IProgressListener listener) throws SnapshotException
Return a proposal for the component (e.g. the bugzilla product MAT) based on a classloader.- Parameters:
classLoader- the class for which the component should be proposedlistener- a progress listener- Returns:
- a String for the proposed component, or null if no proposal.
- Throws:
SnapshotException
-
-