Udvidelsespunktet featureTypes
giver mulighed for, at alternative funktionsimplementeringer kan registreres vha. en symbolsk type-id. Når der refereres til typen vha. denne id, bruges den leverede fabrik til at oprette den korrekte konkrete funktionsimplementering.
<!ELEMENT extension (feature-factory+)>
<!ATTLIST-udvidelse
point CDATA #REQUIRED
id CDATA #IMPLIED
navn CDATA #IMPLIED>
<!ELEMENT feature-factory EMPTY>
<!ATTLIST feature-factory
class CDATA #REQUIRED>
<extension id=
"custom"
point=
"org.eclipse.update.core.featureTypes"
name=
"Tilpasset pakket funktion"
>
<feature-factory class=
"com.xyz.update.CustomFeatureFactory"
>
</feature-factory>
</extension>
org.eclipse.update.core.IFeatureFactory
Copyright (c) 2004 IBM Corporation 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.