<!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
.<extension name="IBM Virtual Machines" point="org.eclipse.mat.api.heapDumpProvider"> <provider impl="org.eclipse.mat.ibmvm.acquire.DumpFactory"> </provider> </extension>The dump provider must implement
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).
Copyright (c) 2010,2011 SAP AG and IBM Corporation
All rights reserved. This program and the accompanying materials are made
available under the terms of the Eclipse Public License 2.0 which
accompanies this distribution, and is available at
https://www.eclipse.org/legal/epl-2.0/