Nature Artifact Handler
Identifier:
org.eclipse.atf.core.natureArtifactHandler
Since:
1.0
Description:
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.
Configuration Markup:
<!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.
- class - The class that implements org.eclipse.atf.natures.INatureArtifactHandler.
- nature - The nature ID for which this artifactHandler applies.
- id - The unique id of this natureArtifactHandler.
<!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.
- id - The plugin id of the plugin that holds the runtime libraries that will be injected as part of the nature.
- libRoot - The directory, relative to the root directory of the runtimePlugin's installation directory, that contains runtime libraries.
- resourcesRoot - The directory, relative to the root directory of the runtimePlugin's installation directory, that contains runtime resources.
Examples:
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>
API Information:
The nature artifact handler class must implement the org.eclipse.atf.natures.INatureArtifactHandler interface.
Supplied Implementation:
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.
Licensed Materials - Property of IBM
AJAX Toolkit Framework 6-28-496-8128
Copyright(c) IBM Corp. 2006 All Rights Reserved.
U.S. Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.