Variable Factory

org.eclipse.atf.templates.variableFactory

1.0

Used to contribute new variable factories to the personality builder framework of the AJAX Toolkit Framework.

<!ELEMENT extension (factory)>

<!ATTLIST extension

point CDATA #REQUIRED

id    CDATA #IMPLIED

name  CDATA #IMPLIED>


<!ELEMENT factory EMPTY>

<!ATTLIST factory

type  CDATA #REQUIRED

class CDATA #REQUIRED>

Variable factory which will create variables of the given type.



An example of contributing a variable factory to support a "List" variable type:

<extension point=

"org.eclipse.atf.templates.variableFactory"

>

<factory type=

"List"

class=

"com.xyz.variable.factory.ListVariableFactory"

/>

</extension>

The variable factory implementation class must implement the org.eclipse.atf.templates.variable.factory.IVariableFactory interface. The variable factory implementation class may extend the base class, org.eclipse.atf.templates.variable.factory.VariableFactoryBase.

The current AJAX Toolkit Framework implements variable factories with the following types; String, Boolean, Project, StringOptions and RelativePath. These extensions are defined in the org.eclipse.atf.templates plugin.