Nature Artifact Handler

org.eclipse.atf.core.natureArtifactHandler

1.0

This extension point allows clients to contribute new runtime artifact handlers when implementing a new AJAX personality. Allows control in placing the runtime artifacts of a particular AJAX runtime in the appropriate project directories when the nature is injected.

<!ELEMENT extension (natureArtifactHandler)>

<!ATTLIST extension

point CDATA #REQUIRED

id    CDATA #IMPLIED

name  CDATA #IMPLIED>


<!ELEMENT natureArtifactHandler (runtimePlugin)>

<!ATTLIST natureArtifactHandler

class  CDATA #REQUIRED

nature CDATA #REQUIRED

id     CDATA #REQUIRED>

Specifies the org.eclipse.atf.natures.INatureArtifactHandler implementation class which takes care of placing the runtime artifacts in the desired project location. Also specifies the nature id for which this natureArtifactHandler is associated with.



<!ELEMENT runtimePlugin EMPTY>

<!ATTLIST runtimePlugin

id            CDATA #REQUIRED

libRoot       CDATA #REQUIRED

resourcesRoot CDATA #REQUIRED>

Defines the plugin that houses the runtime libraries that will be injected as part of the nature.



An example of a natureArtifactHandler contribution for the com.xyz.zimbraNature nature id. The runtime artifact plugin, com.zimbra.tools, must exist and contain the /runtime and /resources/zimbraAjax directories.

<extension id=

"zimbraArtifactHandler"

name=

"Zimbra Nature Artifact Handler"

point=

"org.eclipse.atf.core.natureArtifactHandler"

>

<natureArtifactHandler class=

"com.xyz.ZimbraxArtifactHandler"

nature=

"com.xyz.zimbraNature"

id=

"com.xyz.zimbraNatureArtifactHandler"

>

<runtimePlugin id=

"com.zimbra.tools"

libRoot=

"runtime"

resourcesRoot=

"resources/zimbraAjax"

>

</runtimePlugin>

</natureArtifactHandler>

</extension>

The nature artifact handler class must implement the org.eclipse.atf.natures.INatureArtifactHandler interface.

The current AJAX Toolkit Framework contributes to this extension point by supplying a J2EE Artifact Handler for the Zimbra, DoJo, and Rico AJAX personalities. These contributions can be found in the org.eclipse.atf.personality.zimbra.j2ee, org.eclipse.atf.personality.dojo.j2ee and org.eclipse.atf.personality.rico.j2ee plugins respectively.