<!ELEMENT extension (provider)*>
<!ATTLIST extension
point CDATA #REQUIRED
id CDATA #IMPLIED
name CDATA #IMPLIED>
<!ELEMENT provider EMPTY>
<!ATTLIST provider
impl CDATA #REQUIRED>
org.eclipse.mat.snapshot.acquire.IHeapDumpProvider
.The dump provider must implement<extension name=
"IBM Virtual Machines"
point=
"org.eclipse.mat.api.heapDumpProvider"
>
<provider impl=
"org.eclipse.mat.ibmvm.acquire.DumpFactory"
>
</provider>
</extension>
org.eclipse.mat.snapshot.acquire.IHeapDumpProvider
.
Argument annotations can be used to specify arguments to be filled in by the user.
@Name("My Dump type") public class MyDumpProvider implements org.eclipse.mat.snapshot.acquire.IHeapDumpProvider { @Argument File dumpingProgram;Argument annotations can also be used on VmInfo types.
public class MyVmInfo extends VmInfo { public enum DumpType { DUMP1("dump1"), //$NON-NLS-1$ Dump2("dump2"); //$NON-NLS-1$ String type; private DumpType(String s) { type = s; } } @Argument public DumpType type = DumpType.DUMP1;
org.eclipse.mat.hprof.acquire.JMapHeapDumpProvider
and org.eclipse.mat.ibmvm.acquire.DumpFactory
(actually an IExecutableExtensionFactory).