平台更新机制支持可插入的功能部件类型实现。可以注册新的功能部件类型以便支持备用的封装和验证方案。
featureTypes
扩展点允许使用符号类型标识符来注册备用功能部件实现。每当使用此标识符来引用类型时,就会使用所提供的的 factory 来创建正确的具体功能部件实现。
<!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
>
<extension
id="custom"
point="org.eclipse.update.core.featureTypes"
name="Custom packaged feature">
<feature-factory
class="com.xyz.update.CustomFeatureFactory">
</feature-factory>
</extension>
org.eclipse.update.core.IFeatureFactory