Module Factories

org.eclipse.wst.server.core.moduleFactories

1.0

This extension point is used to provide a factory for modules that can be used by servers.

<!ELEMENT extension (moduleFactory+)>

<!ATTLIST extension

point CDATA #REQUIRED

id    CDATA #IMPLIED

name  CDATA #IMPLIED>


<!ELEMENT moduleFactory (moduleType*)>

<!ATTLIST moduleFactory

id       CDATA #REQUIRED

class    CDATA #REQUIRED

projects (true | false)

order    CDATA #IMPLIED>


<!ELEMENT moduleType EMPTY>

<!ATTLIST moduleType

types    CDATA #REQUIRED

versions CDATA #REQUIRED>


The following is an example of a module factory extension point:

<extension point=

"org.eclipse.wst.server.core.moduleFactories"

>

<moduleFactory projects=

"true"

class=

"org.eclipse.MyWebFactory"

id=

"org.eclipse.wst.static.web"

>

<moduleType versions=

"1.0"

types=

"wst.web"

>

</moduleType>

</moduleFactory>

</extension>

Value of the attribute class must be a fully qualified name of a Java class that extends org.eclipse.wst.server.core.model.ModuleFactoryDelegate and contains a public 0-arg constructor.