| <!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>Site Type Factory</CENTER></H1> |
| <H2>Identifier</H2> |
| org.eclipse.update.core.siteTypes<H2>Description</H2> |
| <p> |
| The platform update mechanism supports pluggable site type |
| implementations. A new site type can be registered in order |
| to support |
| alternate site layout schemes. |
| </p> |
| |
| <p> |
| The <code>siteTypes</code> |
| extension point allows alternate site 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 site implementation. |
| </p><H2>Markup</H2> |
| <p><samp> <!ELEMENT extension (site-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.siteTypes</b></li><li><b>id</b> - must be specified. Identifies the new site type</li><li><b>name</b> - optional displayable label for the new site type</li></ul> |
| <p><samp> <!ELEMENT site-factory EMPTY></samp> |
| <br><samp> <!ATTLIST site-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 |
| site type</li></ul> |
| <H2>Example</H2> |
| The following is an example of new site type registration. |
| <br><br> |
| <code> |
| <extension<br> |
| id="custom"<br> |
| point="org.eclipse.update.core.siteTypes"<br> |
| name="Custom site"><br> |
| <br> |
| <site-factory<br> |
| class="com.xyz.update.CustomSiteFactory"><br> |
| </site-factory><br> |
| </extension><br> |
| </code><H2>API Information</H2> |
| Registered factory classes must implement |
| <code><b>org.eclipse.update.core.ISiteFactory</b></code><H2>Supplied Implementation</H2> |
| The platform supplies two standard implementations of site |
| types. One representing the default update server type, and |
| the other representing the local file system site.<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> |