| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> |
| <HEAD> |
| <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> |
| </HEAD> |
| <HTML> |
| <BODY> |
| <H1><CENTER>Feature Type Factory</CENTER></H1> |
| <H2>Identifier</H2> |
| org.eclipse.update.core.featureTypes<H2>Description</H2> |
| <p>The platform update mechanism supports pluggable feature type |
| implementations. A new feature type can be registered in order |
| to support |
| alternate packaging and verification schemes. |
| </p> |
| <p> |
| The <code>featureTypes</code> |
| extension point allows alternate feature implementations to be |
| registered using a symbolic type identifier. Whenever the |
| type is referenced using this identifier, the supplied factory |
| is used to create the correct concrete feature implementation. |
| </p><H2>Markup</H2> |
| <p><samp> <!ELEMENT extension (feature-factory+)></samp> |
| <br><samp> <!ATTLIST extension</samp> |
| <br><samp> point CDATA #REQUIRED</samp> |
| <br><samp> id CDATA #IMPLIED</samp> |
| <br><samp> name CDATA #IMPLIED</samp> |
| <br><samp> ></samp> |
| <ul> |
| <li><b>point</b> - must be specified as <b>org.eclipse.update.core.featureTypes</b></li><li><b>id</b> - must be specified. Identifies the new feature type</li><li><b>name</b> - optional displayable label for the new feature type</li></ul> |
| <p><samp> <!ELEMENT feature-factory EMPTY></samp> |
| <br><samp> <!ATTLIST feature-factory</samp> |
| <br><samp> class CDATA #REQUIRED</samp> |
| <br><samp> ></samp> |
| <ul> |
| <li><b>class</b> - fully qualified name of the factory class for the identified feature type</li></ul> |
| <H2>Example</H2> |
| The following is an example of new feature type registration. |
| <br><br> |
| <code> |
| <extension<br> |
| id="custom"<br> |
| point="org.eclipse.update.core.featureTypes"<br> |
| name="Custom packaged feature"><br> |
| <br> |
| <feature-factory<br> |
| class="com.xyz.update.CustomFeatureFactory"><br> |
| </feature-factory><br> |
| </extension><br> |
| </code><H2>API Information</H2> |
| Registered factory classes must implement |
| <code><b>org.eclipse.update.core.IFeatureFactory</b></code><H2>Supplied Implementation</H2> |
| The platform supplies two standard implementations of feature |
| types. One representing the default packaged feature type, and |
| the other representing an installed feature type.<br><br><a href="hglegal.htm"><img SRC="ngibmcpy.gif" ALT="Copyright IBM Corp. and others 2000, 2002. All Rights Reserved." BORDER=0></a></BODY> |
| </HTML> |