# Snapshot Factory

###### Identifier:

org.eclipse.mat.api.factory

###### Since:

0.7.0

###### Description:

This is an internal extension point. The implementation of the factory to create snapshot instances is packaged in a separate plug-in.

###### Configuration Markup:

<!ELEMENT extension (factory)>

<!ATTLIST extension

point CDATA #REQUIRED

id CDATA #IMPLIED

name CDATA #IMPLIED

>

<!ELEMENT factory EMPTY>

<!ATTLIST factory

impl CDATA #REQUIRED

>

- impl - implementor of `org.eclipse.mat.snapshot.SnapshotFactory.Implementation`.

###### Examples:

Following is an example of a query declaration:

       <extension point="org.eclipse.mat.api.factory">
          <factory impl="org.eclipse.mat.parser.internal.SnapshotFactoryImpl" />
       </extension>

###### API Information:

The value of the impl attribute must represent an implementor of `org.eclipse.mat.snapshot.SnapshotFactory.Implementation`. The `org.eclipse.mat.snapshot.SnapshotFactory` class in the `org.eclipse.mat.api` plug-in calls the implementation.

###### Supplied Implementation:

The default implementation `org.eclipse.mat.parser.internal.SnapshotFactoryImpl` lives in the `org.eclipse.mat.parser` plug-in.

Copyright (c) 2008,2011 SAP AG and others.
All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at http://www.eclipse.org/legal/epl-v10.html