Feature Type Factory

Identifier

org.eclipse.update.core.featureTypes

Description

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.

The featureTypes 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.

Markup

   <!ELEMENT extension (feature-factory+)>
   <!ATTLIST extension
     point CDATA #REQUIRED
     id    CDATA #IMPLIED
     name  CDATA #IMPLIED
   >

   <!ELEMENT feature-factory EMPTY>
   <!ATTLIST feature-factory
     class CDATA #REQUIRED
   >

Example

The following is an example of new feature type registration.

<extension
   id="custom"
   point="org.eclipse.update.core.featureTypes"
   name="Custom packaged feature">

   <feature-factory
      class="com.xyz.update.CustomFeatureFactory">
   </feature-factory>
</extension>

API Information

Registered factory classes must implement org.eclipse.update.core.IFeatureFactory

Supplied Implementation

The platform supplies two standard implementations of feature types. One representing the default packaged feature type, and the other representing an installed feature type.

Copyright IBM Corp. and others 2000, 2002.  All Rights Reserved.